Bug 891753

Summary: [PATCH] will always overflow destination buffer compiler warning
Product: [Fedora] Fedora Reporter: Igor Vlasenko <viy>
Component: GMTAssignee: Orion Poplawski <orion>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: orion, pertusus
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-25 23:38:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
proposed patch none

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