View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000586 | ascend | compiler | public | 2015-05-22 12:00 | 2016-03-18 19:07 |
Reporter | john | ||||
Assigned To | john | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | Ubuntu | OS Version | 12.04 LTS |
Product Version | SVN | ||||
Target Version | 0.9.9 | Fixed in Version | 0.9.9 | ||
Summary | 0000586: string overflows buffer in WriteLogRelToString | ||||
Description | Hello 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. Regards David Binderman | ||||
Tags | No tags attached. | ||||