Skip to content

umkpasswd on illumos: segmentation fault #61

@janicez

Description

@janicez
(gdb) run -m smd5 555
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/ellenor/src/evilnet/nefarious2/ircd/umkpasswd -m smd5 555
[Thread debugging using libthread_db enabled]
[New Thread 1 (LWP 1)]

Thread 2 received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
make_salt (salts=0x408df8 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./") at umkpasswd.c:132
132       memcpy(tmp, (salts+n), 1);

from another invocation:

(gdb) print tmp
$1 = 0xc7a930 ""
(gdb) print salts
$2 = 0x408df8 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./"
(gdb) print n
$3 = 3040655

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions