Bug 891753 - [PATCH] will always overflow destination buffer compiler warning
Summary: [PATCH] will always overflow destination buffer compiler warning
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: GMT
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-03 21:28 UTC by Igor Vlasenko
Modified: 2013-02-25 23:38 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-25 23:38:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
proposed patch (1.40 KB, patch)
2013-01-03 21:28 UTC, Igor Vlasenko
no flags Details | Diff

Description Igor Vlasenko 2013-01-03 21:28:52 UTC
Created attachment 672222 [details]
proposed patch

Description of problem:
from log:
In file included from /usr/include/string.h:656:0,
                 from /usr/src/RPM/BUILD/GMT4.5.8/src/gmt.h:77,
                 from mgd77.h:22,
                 from mgd77.c:20:
In function 'strncpy',
    inlined from 'MGD77_Decode_Header_m77t' at mgd77.c:857:14:
/usr/include/bits/string3.h:120:3: error: call to __builtin___strncpy_chk will always overflow destination buffer
In function 'strncpy',
    inlined from 'MGD77_Decode_Header_m77t' at mgd77.c:868:14:
/usr/include/bits/string3.h:120:3: error: call to __builtin___strncpy_chk will always overflow destination buffer
In function 'strncpy',
    inlined from 'MGD77_Decode_Header_m77t' at mgd77.c:872:14:
/usr/include/bits/string3.h:120:3: error: call to __builtin___strncpy_chk will always overflow destination buffer
mgd77.c: In function 'MGD77_Read_Data_Record_m77t':

Proposed patch (attached) fixes this warning and makes program more stable.

Comment 1 Orion Poplawski 2013-02-25 23:38:34 UTC
This was fixed upstream in 4.5.9


Note You need to log in before you can comment on or make changes to this bug.