Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 82055 Details for
Bug 126012
sys-apps/file-4.17 build fails: "[magic.mgc] Segmentation fault"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
file-4.17-init-mem.patch
file-4.17-init-mem.patch (text/plain), 698 bytes, created by
SpanKY
on 2006-03-13 15:50:44 UTC
(
hide
)
Description:
file-4.17-init-mem.patch
Filename:
MIME Type:
Creator:
SpanKY
Created:
2006-03-13 15:50:44 UTC
Size:
698 bytes
patch
obsolete
>Make sure we init the memory we allocate (file-4.16 did this, but >file-4.17 doesnt). > >http://bugs.gentoo.org/126012 > >--- file-4.17/src/apprentice.c >+++ file-4.17/src/apprentice.c >@@ -380,8 +380,8 @@ apprentice_file(struct magic_set *ms, st > return -1; > } > >- maxmagic = MAXMAGIS; >- if ((marray = malloc(maxmagic * sizeof(*marray))) == NULL) { >+ maxmagic = MAXMAGIS; >+ if ((marray = calloc(maxmagic, sizeof(*marray))) == NULL) { > (void)fclose(f); > file_oomem(ms); > return -1; >@@ -509,7 +509,7 @@ parse(struct magic_set *ms, struct magic > char *t; > private const char *fops = FILE_OPS; > uint32_t val; >- uint32_t cont_level, cont_count; >+ uint32_t cont_level; > > cont_level = 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 126012
: 82055