[GH-ISSUE #976] krb4 format: asan error #576

Closed
opened 2026-10-14 03:13:52 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @frank-dittrich on GitHub (Dec 30, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/976

contents of fail/fail_krb4.pw:

$af$ENGIN9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.UMICH.EDU$14d0a59a2f9e746f1a3bf02ec4fb447e
(bleeding-jumbo)run $ OMP_NUM_THREADS=1 ./john fail/fail_krb4.pw 
=================================================================
==2137== ERROR: AddressSanitizer: global-buffer-overflow on address 0x0000010ee4d8 at pc 0x793286 bp 0x7fff87992120 sp 0x7fff87992110
WRITE of size 1 at 0x0000010ee4d8 thread T0
    #0 0x793285 (/home/fd/git/JtR/run/john+0x793285)
    #1 0x51b248 (/home/fd/git/JtR/run/john+0x51b248)
    #2 0x779ae1 (/home/fd/git/JtR/run/john+0x779ae1)
    #3 0x77afa2 (/home/fd/git/JtR/run/john+0x77afa2)
    #4 0x77cd7d (/home/fd/git/JtR/run/john+0x77cd7d)
    #5 0x77378a (/home/fd/git/JtR/run/john+0x77378a)
    #6 0x774ecd (/home/fd/git/JtR/run/john+0x774ecd)
    #7 0x7765b3 (/home/fd/git/JtR/run/john+0x7765b3)
    #8 0x38dd621d64 (/usr/lib64/libc-2.18.so+0x21d64)
    #9 0x4065b4 (/home/fd/git/JtR/run/john+0x4065b4)
0x0000010ee4d8 is located 40 bytes to the left of global variable 'saved_key (KRB4_fmt_plug.c)' (0x10ee500) of size 172
  'saved_key (KRB4_fmt_plug.c)' is ascii string ''
0x0000010ee4d8 is located 0 bytes to the right of global variable 'salt (KRB4_fmt_plug.c)' (0x10ee4a0) of size 56
Shadow bytes around the buggy address:
  0x000080215c40: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 04
  0x000080215c50: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
  0x000080215c60: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9
  0x000080215c70: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9
  0x000080215c80: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9
=>0x000080215c90: f9 f9 f9 f9 00 00 00 00 00 00 00[f9]f9 f9 f9 f9
  0x000080215ca0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x000080215cb0: 00 00 00 00 00 04 f9 f9 f9 f9 f9 f9 00 f9 f9 f9
  0x000080215cc0: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
  0x000080215cd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x000080215ce0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
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 righ 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
  ASan internal:         fe
==2137== ABORTING
(bleeding-jumbo)run $ ./asan_symbolize.py 
    #0 0x793285 (/home/fd/git/JtR/run/john+0x793285)
    #1 0x51b248 (/home/fd/git/JtR/run/john+0x51b248)
    #2 0x779ae1 (/home/fd/git/JtR/run/john+0x779ae1)
    #3 0x77afa2 (/home/fd/git/JtR/run/john+0x77afa2)
    #4 0x77cd7d (/home/fd/git/JtR/run/john+0x77cd7d)
    #5 0x77378a (/home/fd/git/JtR/run/john+0x77378a)
    #6 0x774ecd (/home/fd/git/JtR/run/john+0x774ecd)
    #7 0x7765b3 (/home/fd/git/JtR/run/john+0x7765b3)
    #8 0x38dd621d64 (/usr/lib64/libc-2.18.so+0x21d64)
    #9 0x4065b4 (/home/fd/git/JtR/run/john+0x4065b4)
llvm-symbolizer: for the -functions option: 'short' is invalid value for boolean argument! Try 0 or 1
    #0 0x793285 in strnzcpy /home/fd/git/JtR/src/misc.c:133
    #1 0x51b248 in salt /home/fd/git/JtR/src/KRB4_fmt_plug.c:169
    #2 0x779ae1 in ldr_load_pw_line /home/fd/git/JtR/src/loader.c:736
    #3 0x77afa2 in read_file /home/fd/git/JtR/src/loader.c:135
    #4 0x77cd7d in ldr_load_pw_file /home/fd/git/JtR/src/loader.c:834
    #5 0x77378a in john_load /home/fd/git/JtR/src/john.c:974 (discriminator 1)
    #6 0x774ecd in john_init /home/fd/git/JtR/src/john.c:1240
    #7 0x7765b3 in main /home/fd/git/JtR/src/john.c:1638
    #8 0x38dd621d64 in ?? ??:0
    #9 0x4065b4 in _start ??:?
Originally created by @frank-dittrich on GitHub (Dec 30, 2014). Original GitHub issue: https://github.com/openwall/john/issues/976 contents of fail/fail_krb4.pw: ``` $af$ENGIN9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.UMICH.EDU$14d0a59a2f9e746f1a3bf02ec4fb447e ``` ``` (bleeding-jumbo)run $ OMP_NUM_THREADS=1 ./john fail/fail_krb4.pw ================================================================= ==2137== ERROR: AddressSanitizer: global-buffer-overflow on address 0x0000010ee4d8 at pc 0x793286 bp 0x7fff87992120 sp 0x7fff87992110 WRITE of size 1 at 0x0000010ee4d8 thread T0 #0 0x793285 (/home/fd/git/JtR/run/john+0x793285) #1 0x51b248 (/home/fd/git/JtR/run/john+0x51b248) #2 0x779ae1 (/home/fd/git/JtR/run/john+0x779ae1) #3 0x77afa2 (/home/fd/git/JtR/run/john+0x77afa2) #4 0x77cd7d (/home/fd/git/JtR/run/john+0x77cd7d) #5 0x77378a (/home/fd/git/JtR/run/john+0x77378a) #6 0x774ecd (/home/fd/git/JtR/run/john+0x774ecd) #7 0x7765b3 (/home/fd/git/JtR/run/john+0x7765b3) #8 0x38dd621d64 (/usr/lib64/libc-2.18.so+0x21d64) #9 0x4065b4 (/home/fd/git/JtR/run/john+0x4065b4) 0x0000010ee4d8 is located 40 bytes to the left of global variable 'saved_key (KRB4_fmt_plug.c)' (0x10ee500) of size 172 'saved_key (KRB4_fmt_plug.c)' is ascii string '' 0x0000010ee4d8 is located 0 bytes to the right of global variable 'salt (KRB4_fmt_plug.c)' (0x10ee4a0) of size 56 Shadow bytes around the buggy address: 0x000080215c40: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 04 0x000080215c50: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 0x000080215c60: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 0x000080215c70: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 0x000080215c80: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 =>0x000080215c90: f9 f9 f9 f9 00 00 00 00 00 00 00[f9]f9 f9 f9 f9 0x000080215ca0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x000080215cb0: 00 00 00 00 00 04 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 0x000080215cc0: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00 0x000080215cd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x000080215ce0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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 righ 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 ASan internal: fe ==2137== ABORTING (bleeding-jumbo)run $ ./asan_symbolize.py #0 0x793285 (/home/fd/git/JtR/run/john+0x793285) #1 0x51b248 (/home/fd/git/JtR/run/john+0x51b248) #2 0x779ae1 (/home/fd/git/JtR/run/john+0x779ae1) #3 0x77afa2 (/home/fd/git/JtR/run/john+0x77afa2) #4 0x77cd7d (/home/fd/git/JtR/run/john+0x77cd7d) #5 0x77378a (/home/fd/git/JtR/run/john+0x77378a) #6 0x774ecd (/home/fd/git/JtR/run/john+0x774ecd) #7 0x7765b3 (/home/fd/git/JtR/run/john+0x7765b3) #8 0x38dd621d64 (/usr/lib64/libc-2.18.so+0x21d64) #9 0x4065b4 (/home/fd/git/JtR/run/john+0x4065b4) llvm-symbolizer: for the -functions option: 'short' is invalid value for boolean argument! Try 0 or 1 #0 0x793285 in strnzcpy /home/fd/git/JtR/src/misc.c:133 #1 0x51b248 in salt /home/fd/git/JtR/src/KRB4_fmt_plug.c:169 #2 0x779ae1 in ldr_load_pw_line /home/fd/git/JtR/src/loader.c:736 #3 0x77afa2 in read_file /home/fd/git/JtR/src/loader.c:135 #4 0x77cd7d in ldr_load_pw_file /home/fd/git/JtR/src/loader.c:834 #5 0x77378a in john_load /home/fd/git/JtR/src/john.c:974 (discriminator 1) #6 0x774ecd in john_init /home/fd/git/JtR/src/john.c:1240 #7 0x7765b3 in main /home/fd/git/JtR/src/john.c:1638 #8 0x38dd621d64 in ?? ??:0 #9 0x4065b4 in _start ??:? ```
bsakaguchi 2026-10-14 03:13:52 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@magnumripper commented on GitHub (Dec 30, 2014):

Does this sanitizer thing make memdbg pretty much obsolete? Or is there anything memdbg will do that ASAN can't?

<!-- gh-comment-id:68397956 --> @magnumripper commented on GitHub (Dec 30, 2014): Does this sanitizer thing make memdbg pretty much obsolete? Or is there anything memdbg will do that ASAN can't?
Author
Owner

@jfoug commented on GitHub (Dec 30, 2014):

Find mem leaks. I assure you, ASAN is not doing that, because we leak like a SOB, due to mem_alloc_tiny, but we have written code specially to handle this with memdbg.

Just because memdbg is not finding stuff all that much, does not mean that it is not still important. It found a LOT of memory leaks over time. Many of them have been found, so the code is clean. I still think it servers it's purpose. Yes, ASAN does a whole lot more. But using it to auto find leaks likely will have us doing wild goose chasing, OR marking all sorts of functions as 'do not track'.

memdbg IS something that compile time injected (just like ASAN). The compiler gives it no help, all code is simply in superclassing the alloc/free functions, and adding our own fencepost boundaries, and a linked list tracking this. ASAN has the compiler help to do somewhat the same thing.

<!-- gh-comment-id:68398945 --> @jfoug commented on GitHub (Dec 30, 2014): Find mem leaks. I assure you, ASAN is not doing that, because we leak like a SOB, due to mem_alloc_tiny, but we have written code specially to handle this with memdbg. Just because memdbg is not finding stuff all that much, does not mean that it is not still important. It found a LOT of memory leaks over time. Many of them have been found, so the code is clean. I still think it servers it's purpose. Yes, ASAN does a whole lot more. But using it to auto find leaks likely will have us doing wild goose chasing, OR marking all sorts of functions as 'do not track'. memdbg IS something that compile time injected (just like ASAN). The compiler gives it no help, all code is simply in superclassing the alloc/free functions, and adding our own fencepost boundaries, and a linked list tracking this. ASAN has the compiler help to do somewhat the same thing.
Author
Owner

@magnumripper commented on GitHub (Dec 30, 2014):

So memdbg + ASAN might be a cute couple. I haven't used both simultaneously yet.

<!-- gh-comment-id:68399280 --> @magnumripper commented on GitHub (Dec 30, 2014): So memdbg + ASAN might be a cute couple. I haven't used both simultaneously yet.
Author
Owner

@jfoug commented on GitHub (Dec 30, 2014):

I have, they work just fine with each other. memdbg is a nasty bitch, but I have developed that over the last 25 years, and it is actually pretty solid. So ASAN does not find any problems in it during runtime.

The memdbg code I have in JtR is by far the youngest version. I had to 'down' code it to C. I wrote it in C in early 90's, but switched to C++ shortly thereafter, and most of the work was in C++, do to objects. I simply had to undo some of the object oriented methods, and do what I could in C. I actually do not have that original C code any more. It was not nearly as powerful as memdbg is today. The original only leak detected upon program exit, wrapped malloc, calloc and strdup (and free). That was about the full extent to that original tool. The C++ code did so much more, including memory state (save and compare), handled all the mallocs, and handled new, and new[] along with delete/delete[] But all those goodies had to be taken out. But all is good, and what we have is pretty solid and very helpful.

Now, ASAN, I am only learning about, but it really kicks ass also. I LOVE the fact that it bounds checks the stack. That seems to be about all that is left, since memdbg has cleaned up a lot of the other issues. I also LOVE the fact that ASAN finds read OOB's (not just write OOB's). Read OOB's are much harder to detect (unless it causes a core). The program runs, and often there are no outward symptoms. Many of the recent things @frank-dittrich has found, have been OOB read issues (read past end of buffer, etc).

But they do work hand in hand. Yes, ASAN, DOES handle so much more. But memdbg is highly tuned to the memory model of JtR, and does not let leaks get by, while at same time, does not get bogged down making you chase a lot of phantoms.

<!-- gh-comment-id:68401935 --> @jfoug commented on GitHub (Dec 30, 2014): I have, they work just fine with each other. memdbg is a nasty bitch, but I have developed that over the last 25 years, and it is actually pretty solid. So ASAN does not find any problems in it during runtime. The memdbg code I have in JtR is by far the youngest version. I had to 'down' code it to C. I wrote it in C in early 90's, but switched to C++ shortly thereafter, and most of the work was in C++, do to objects. I simply had to undo some of the object oriented methods, and do what I could in C. I actually do not have that original C code any more. It was not nearly as powerful as memdbg is today. The original only leak detected upon program exit, wrapped malloc, calloc and strdup (and free). That was about the full extent to that original tool. The C++ code did so much more, including memory state (save and compare), handled all the mallocs, and handled new, and new[] along with delete/delete[] But all those goodies had to be taken out. But all is good, and what we have is pretty solid and very helpful. Now, ASAN, I am only learning about, but it really kicks ass also. I LOVE the fact that it bounds checks the stack. That seems to be about all that is left, since memdbg has cleaned up a lot of the other issues. I also LOVE the fact that ASAN finds read OOB's (not just write OOB's). Read OOB's are much harder to detect (unless it causes a core). The program runs, and often there are no outward symptoms. Many of the recent things @frank-dittrich has found, have been OOB read issues (read past end of buffer, etc). But they do work hand in hand. Yes, ASAN, DOES handle so much more. But memdbg is highly tuned to the memory model of JtR, and does not let leaks get by, while at same time, does not get bogged down making you chase a lot of phantoms.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#576
No description provided.