Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339073 - dev-util/wiggle-0.8: warning: call to __builtin___strcpy_chk will always overflow destination buffer
Summary: dev-util/wiggle-0.8: warning: call to __builtin___strcpy_chk will always over...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-29 02:51 UTC by Jonathan Callen (RETIRED)
Modified: 2010-09-29 03:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
increase buffer size (wiggle-0.8-buffer-overflow.patch,210 bytes, patch)
2010-09-29 02:52 UTC, Jonathan Callen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Callen (RETIRED) gentoo-dev 2010-09-29 02:51:55 UTC
Attached is a simple patch that fixes this by extending the buffer by 2 bytes. (considering that the code always ends up putting an 11-char string (plus the '\0' making 12 bytes total) into a 10-byte buffer, I figured just making it a 12-byte buffer would be the correct fix).
Comment 1 Jonathan Callen (RETIRED) gentoo-dev 2010-09-29 02:52:31 UTC
Created attachment 248942 [details, diff]
increase buffer size
Comment 2 Jonathan Callen (RETIRED) gentoo-dev 2010-09-29 03:00:23 UTC
Committed.