Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 652825 Details for
Bug 878913
nscd is segfaulting within libnss_db.so
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Get a prime larger than 3
glibc-test.patch (text/plain), 754 bytes, created by
Siddhesh Poyarekar
on 2012-11-27 15:32:34 UTC
(
hide
)
Description:
Get a prime larger than 3
Filename:
MIME Type:
Creator:
Siddhesh Poyarekar
Created:
2012-11-27 15:32:34 UTC
Size:
754 bytes
patch
obsolete
>diff --git a/nss/makedb.c b/nss/makedb.c >index 8d7d027..fdcf4c6 100644 >--- a/nss/makedb.c >+++ b/nss/makedb.c >@@ -591,10 +591,12 @@ copy_valstr (const void *nodep, const VISIT which, const int depth) > } > > >+/* Check if a number is prime. We check only odd numbers greater than 10. >+ Enter even numbers and watch the function fail in mysterious ways. Odd >+ numbers less than 10 return false even if they are prime. */ > static int > is_prime (size_t candidate) > { >- /* No even number and none less than 10 will be passed here. */ > size_t divn = 3; > size_t sq = divn * divn; > >@@ -605,7 +607,7 @@ is_prime (size_t candidate) > ++divn; > } > >- return candidate % divn != 0; >+ return (candidate >= divn && candidate % divn != 0); > } > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 878913
: 652825