Modify

Opened 7 years ago

Closed 7 years ago

Last modified 2 years ago

#4789 closed defect (fixed)

brcm63xx branch fails to generate tagged image (buffer overflow in imagetag)

Reported by: dizzy Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version:
Keywords: brcm63xx imagetag buffer overflow Cc:

Description

A couple of days ago updated from the current svn trunk and failed to compile with the following message (ubuntu 8.10), though previous compilations went without errors.

# Generate the tagged image                                                                                                                   
/work/openwrt/kamikaze-trunk/staging_dir/host/bin/imagetag -i /work/openwrt/kamikaze-trunk/build_dir/linux-brcm63xx/vmlinux.lzma.cfe -f /work/openwrt/kamikaze-trunk/build_dir/linux-brcm63xx/root.squashfs -o /work/openwrt/kamikaze-trunk/bin/openwrt-96345GW2-squashfs-cfe.bin -b 96345GW2 -c 6345 -e 0x80010000          -l 0x80010000                                                                                                
Broadcom image tagger - v0.1.1                                                                                                                
Copyright (C) 2008 Axel Gembe                                                                                                                 
*** buffer overflow detected ***: /work/openwrt/kamikaze-trunk/staging_dir/host/bin/imagetag terminated                                       
======= Backtrace: =========                                                                                                                  
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0x401196d8]                                                                                 
/lib/tls/i686/cmov/libc.so.6[0x40117800]
/lib/tls/i686/cmov/libc.so.6(__strcpy_chk+0x44)[0x40116ad4]
/work/openwrt/kamikaze-trunk/staging_dir/host/bin/imagetag[0x8048c5c]
/work/openwrt/kamikaze-trunk/staging_dir/host/bin/imagetag[0x8049489]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0x40035685]
/work/openwrt/kamikaze-trunk/staging_dir/host/bin/imagetag[0x80487e1]
======= Memory map: ========
08048000-0804a000 r-xp 00000000 08:01 1624491    /work/openwrt/kamikaze-trunk/staging_dir/host/bin/imagetag
0804a000-0804b000 r--p 00001000 08:01 1624491    /work/openwrt/kamikaze-trunk/staging_dir/host/bin/imagetag
0804b000-0804c000 rw-p 00002000 08:01 1624491    /work/openwrt/kamikaze-trunk/staging_dir/host/bin/imagetag
090cd000-090ee000 rw-p 090cd000 00:00 0          [heap]
40000000-4001a000 r-xp 00000000 08:01 8224787    /lib/ld-2.8.90.so
4001a000-4001b000 r-xp 4001a000 00:00 0          [vdso]
4001b000-4001c000 r--p 0001a000 08:01 8224787    /lib/ld-2.8.90.so
4001c000-4001d000 rw-p 0001b000 08:01 8224787    /lib/ld-2.8.90.so
4001d000-4001f000 rw-p 4001d000 00:00 0
4001f000-40177000 r-xp 00000000 08:01 8241610    /lib/tls/i686/cmov/libc-2.8.90.so
40177000-40179000 r--p 00158000 08:01 8241610    /lib/tls/i686/cmov/libc-2.8.90.so
40179000-4017a000 rw-p 0015a000 08:01 8241610    /lib/tls/i686/cmov/libc-2.8.90.so
4017a000-4017f000 rw-p 4017a000 00:00 0
40181000-40182000 rw-p 40181000 00:00 0
40182000-4018f000 r-xp 00000000 08:01 8225062    /lib/libgcc_s.so.1
4018f000-40190000 r--p 0000c000 08:01 8225062    /lib/libgcc_s.so.1
40190000-40191000 rw-p 0000d000 08:01 8225062    /lib/libgcc_s.so.1
bfdc0000-bfdd6000 rw-p bffea000 00:00 0          [stack]
--: line 1: 11067 Aborted                 /work/openwrt/kamikaze-trunk/staging_dir/host/bin/imagetag -i /work/openwrt/kamikaze-trunk/build_dir/linux-brcm63xx/vmlinux.lzma.cfe -f /work/openwrt/kamikaze-trunk/build_dir/linux-brcm63xx/root.squashfs -o /work/openwrt/kamikaze-trunk/bin/openwrt-96345GW2-squashfs-cfe.bin -b 96345GW2 -c 6345 -e 0x80010000 -l 0x80010000
make[5]: *** [install] Error 134
make[5]: Leaving directory `/work/openwrt/kamikaze-trunk/target/linux/brcm63xx/image'
make[4]: *** [install] Error 2
make[4]: Leaving directory `/work/openwrt/kamikaze-trunk/target/linux/brcm63xx'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/work/openwrt/kamikaze-trunk/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/work/openwrt/kamikaze-trunk'
make[1]: *** [/work/openwrt/kamikaze-trunk/staging_dir/target-mips_uClibc-0.9.29/stamp/.target_install] Error 2
make[1]: Leaving directory `/work/openwrt/kamikaze-trunk'
make: *** [world] Error 2

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by florian

Which OpenWrt revision are building with ?

comment:2 Changed 7 years ago by dizzy

Cant say revision number, but I did completely new source checkout right before posting ticket.
But current update (r14941) resolved issue (i saw changed imagetag.c, so i suppose there was bug somewhere).
So thanx a lot. Guess case should be closed now.

comment:3 Changed 7 years ago by hauke

  • Resolution set to fixed
  • Status changed from new to closed

Thanks for reporting.

comment:4 Changed 2 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.