- Category: other --> PIC16
sdcc-3.4.1 (2014 09 03) gentoo linux build amd64 gcc-4.8.2
sys-libs/glibc Installed versions: 2.19-r1(2.2)^s1(gd multilib nscd -debug -hardened -profile -selinux -suid -systemtap -vanilla CROSSCOMPILE_OPTS="-headers-only")
sample code attached (simple clock project in mplab x).
when i try to compile project:
[i]
buffer overflow detected : /usr/local/bin/sdcc terminated
======= Backtrace: =========
/lib64/libc.so.6[0x3431878b73]
/lib64/libc.so.6(fortify_fail+0x37)[0x34318fbe37]
/lib64/libc.so.6[0x34318f9dc0]
/lib64/libc.so.6[0x34318f9179]
/lib64/libc.so.6(_IO_default_xsputn+0x89)[0x343187be69]
/lib64/libc.so.6(_IO_vfprintf+0x4716)[0x343184e726]
/lib64/libc.so.6(vsprintf_chk+0x97)[0x34318f9217]
/usr/local/bin/sdcc[0x58175a]
/usr/local/bin/sdcc[0x582146]
/usr/local/bin/sdcc[0x56ba51]
/usr/local/bin/sdcc[0x56c74a]
/usr/local/bin/sdcc[0x56d09c]
/usr/local/bin/sdcc[0x56d437]
/usr/local/bin/sdcc[0x56e8fe]
/usr/local/bin/sdcc[0x56f0e0]
/usr/local/bin/sdcc[0x40a3f8]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x3431824e65]
/usr/local/bin/sdcc[0x40bb4d]
[/i]
root of problem in names in file with lcd symbols rawdata (melt_widgets_2x.h)
this file have lot of
[i]
static const uint8_t static const uint8_t image_data_melt12232d_2x_widgets_0x22[32] = {
0x00,
0xfe,
..
[/i]
if i make lcd symbol rawdata names much shorter and simple - the problem disapears.