Skip to content

crypt() invokes coredump in interpreter.c #3

@sshine

Description

@sshine

On my computer, but not on @gpiedimonte's, crypt() causes a coredump when entering one's password for the first time. (This was discovered in #2.)

The problem lines in interpreter.c are:

1182:strncpy(d->pwd, crypt(arg, d->character->player.name), 10);
1380:strncpy(d->pwd, crypt(arg, d->character->player.name), 10);

crypt() doesn't return a NULL pointer; trying to print its output in gdb gives:

$1 = 0xfffffffff7dd41e0 <error: Cannot access memory at address 0xfffffffff7dd41e0>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions