Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 236443 Details for
Bug 324863
mail-client/thunderbird-3.1_rc2-r1 buffer overflow w/ gcc-4.5 and -U_FORTIFY_SOURCE=2
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
hunspell-buffer.patch
hunspell-buffer.patch (text/plain), 802 bytes, created by
Harald van Dijk (RETIRED)
on 2010-06-24 21:23:33 UTC
(
hide
)
Description:
hunspell-buffer.patch
Filename:
MIME Type:
Creator:
Harald van Dijk (RETIRED)
Created:
2010-06-24 21:23:33 UTC
Size:
802 bytes
patch
obsolete
>--- comm-1.9.2/mozilla/extensions/spellcheck/hunspell/src/hashmgr.cpp >+++ comm-1.9.2/mozilla/extensions/spellcheck/hunspell/src/hashmgr.cpp >@@ -187,7 +187,7 @@ > struct hentry* hp = > (struct hentry *) malloc (sizeof(struct hentry) + wbl + descl); > if (!hp) return 1; >- char * hpw = &(hp->word); >+ char * hpw = HENTRY_WORD(hp); > strcpy(hpw, word); > if (ignorechars != NULL) { > if (utf8) { >--- comm-1.9.2/mozilla/extensions/spellcheck/hunspell/src/htypes.hxx >+++ comm-1.9.2/mozilla/extensions/spellcheck/hunspell/src/htypes.hxx >@@ -68,7 +68,7 @@ > #define H_OPT_PHON (1 << 2) > > // see also csutil.hxx >-#define HENTRY_WORD(h) &(h->word) >+#define HENTRY_WORD(h) ((char *) &h + offsetof(struct hentry, word)) > > // approx. number of user defined words > #define USERWORD 1000
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 324863
:
236443
|
236453
|
237839