tag 728225 + moreinfo unreproducible
thanks

I have tried the trivial script and it runs consistently at 0.4% of memory.

On the other hand I tried building ksh with

export DEB_BUILD_MAINT_OPTIONS=sanitize=+all

The resulting package was unusable generating the following report. However I don't know what to make of that.


$ ksh
=================================================================
==20384==ERROR: AddressSanitizer: global-buffer-overflow on address 0x000000851482 at pc 0x7f9cea02fac6 bp 0x7ffc3376dbd0 sp 0x7ffc3376d380
READ of size 8 at 0x000000851482 thread T0
#0 0x7f9cea02fac5 in memcmp (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x74ac5)
    #1 0x4ae9a7  (/bin/ksh93+0x4ae9a7)
    #2 0x61e5a2  (/bin/ksh93+0x61e5a2)
    #3 0x61ed20  (/bin/ksh93+0x61ed20)
    #4 0x558bbb  (/bin/ksh93+0x558bbb)
    #5 0x40f43f  (/bin/ksh93+0x40f43f)
#6 0x7f9ce881cb44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44)
    #7 0x40f093  (/bin/ksh93+0x40f093)

0x000000851482 is located 62 bytes to the left of global variable 'hist_fname' defined in '/home/nicholas/src/ksh/src/cmd/ksh93/data/msg.c:210:12' (0x8514c0) of size 13
  'hist_fname' is ascii string '/.sh_history'
0x000000851482 is located 0 bytes to the right of global variable 'e_dot' defined in '/home/nicholas/src/ksh/src/cmd/ksh93/data/msg.c:211:12' (0x851480) of size 2
  'e_dot' is ascii string '.'
SUMMARY: AddressSanitizer: global-buffer-overflow ??:0 memcmp
Shadow bytes around the buggy address:
  0x000080102240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x000080102250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x000080102260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x000080102270: 00 00 00 05 f9 f9 f9 f9 00 01 f9 f9 f9 f9 f9 f9
  0x000080102280: 00 00 00 06 f9 f9 f9 f9 05 f9 f9 f9 f9 f9 f9 f9
=>0x000080102290:[02]f9 f9 f9 f9 f9 f9 f9 00 05 f9 f9 f9 f9 f9 f9
  0x0000801022a0: 00 07 f9 f9 f9 f9 f9 f9 00 00 00 00 06 f9 f9 f9
  0x0000801022b0: f9 f9 f9 f9 00 00 07 f9 f9 f9 f9 f9 00 07 f9 f9
  0x0000801022c0: f9 f9 f9 f9 00 00 02 f9 f9 f9 f9 f9 00 05 f9 f9
  0x0000801022d0: f9 f9 f9 f9 00 07 f9 f9 f9 f9 f9 f9 03 f9 f9 f9
  0x0000801022e0: f9 f9 f9 f9 03 f9 f9 f9 f9 f9 f9 f9 03 f9 f9 f9
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Heap right redzone:      fb
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack partial redzone:   f4
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
==20384==ABORTING

Reply via email to