Menu

#28 compile-time warning and a runtime abort "overflow" under Ubuntu 14.04 with gcc 4.8.4

Next Release
closed-fixed
jfaucher
None
5
2016-04-01
2016-03-28
jfaucher
No

Under Ubuntu 14.04 with gcc 4.8.4
Runtime abort "overflow" during the initialization .

Problem detected by the compiler :
In function ‘int snprintf(char, size_t, const char, ...)’,
inlined from ‘const char RgfAddProxyObject(RexxThreadContext, RexxObjectPtr, RexxPackageObject)’ at BSF4ooRexx.cc:1812:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: warning: call to int __builtinsnprintfchk(char, long unsigned int, int, long unsigned int, const char, ...) will always overflow destination buffer [enabled by default]
bos (__s), __fmt, __va_arg_pack ());

and several other warnings, everywhere the macro RgfPointer2String is used.

Discussion

  • jfaucher

    jfaucher - 2016-03-28

    Fixed Revision: 341
    It seems SourceForge svn reports many differences because of end-of-line...
    My change is only for this macro definition : #define RgfPointer2String(ptr, str)

     
  • jfaucher

    jfaucher - 2016-03-28
    • status: open --> closed-fixed
     
  • Rony G. Flatscher

    Jean-Louis, thank you very much for having taken care of this! Cheers, ---rony

     

Log in to post a comment.

MongoDB Logo MongoDB