View Issue Details

IDProjectCategoryView StatusLast Update
0000586ascendcompilerpublic2016-03-18 19:07
Assigned Tojohn 
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
PlatformLinuxOSUbuntuOS Version12.04 LTS
Product VersionSVN 
Target Version0.9.9Fixed in Version0.9.9 
Summary0000586: string overflows buffer in WriteLogRelToString
DescriptionHello there,

In function 'sprintf',
    inlined from 'WriteLogRelToString' at ascend/compiler/logrel_io.c:773:5:
/usr/include/bits/stdio2.h:33:10: warning: call to __builtin___sprintf_chk will always overflow destination buffer

Source code is

    result = ASC_NEW_ARRAY(char,15);
    if (result == NULL) return result;
    sprintf(result,"NULL logical relation\n");

23 into 15 won't go. Suggest code rework.


David Binderman

TagsNo tags attached.




2015-05-22 12:05

administrator   ~0001001

fixed in changeset 2927 (new svn repo)

Issue History

Date Modified Username Field Change
2015-05-22 12:00 john New Issue
2015-05-22 12:05 john Note Added: 0001001
2015-05-22 12:05 john Status new => resolved
2015-05-22 12:05 john Fixed in Version => 0.9.9
2015-05-22 12:05 john Resolution open => fixed
2015-05-22 12:05 john Assigned To => john