gtkpod-2.1.3 bug report
David Binderman <[email protected]> Fri, 31 May 2013 17:33:19 +0000
| Newsgroups | gmane.comp.ipod.gtkpod |
|---|---|
| Message-ID | <[email protected]> |
Hello there, I just got the GNU C compiler to say this In function 'int sprintf(char*, const char*, ...)', =A0=A0=A0 inlined from 'char* APar_ExtractDataAtom(int)' at AtomicParsley.c= pp:1833:97: /usr/include/bits/stdio2.h:34:43: warning: call to int __builtin___sprintf_= chk(char*, int, long unsigned int, const char*, ...) will always overflow d= estination buffer [enabled by default] =A0=A0=A0=A0=A0=A0 __bos (__s), __fmt, __va_arg_pack ()); =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ^ Source code is =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 char* result =3D (char*) malloc(sizeof(char) * 12); =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 sprintf(result, "Unknown (%u)\n", UInt32FromBigEndian(data_payload)); Suggest change 12 to 20 or 30. Regards David Binderman = ---------------------------------------------------------------------------= --- Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2