Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use after free #1770

Open
michaelortmann opened this issue Feb 8, 2025 · 0 comments
Open

Use after free #1770

michaelortmann opened this issue Feb 8, 2025 · 0 comments

Comments

@michaelortmann
Copy link
Member

I killed the bot in terminal with ctrl+c and got:

*** ACK, I've been terminated!
[10:57:17.%f] Writing user file...
=================================================================
==719370==ERROR: AddressSanitizer: heap-use-after-free on address 0x50200001dfb0 at pc 0x73326306cbd0 bp 0x7ffd079aab00 sp 0x7ffd079aa278
READ of size 2 at 0x50200001dfb0 thread T0
    #0 0x73326306cbcf in printf_common /usr/src/debug/gcc/gcc/libsanitizer/sanitizer_common/sanitizer_common_interceptors_format.inc:563
    #1 0x733263086b93 in vfprintf /usr/src/debug/gcc/gcc/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:1648
    #2 0x733263088d56 in __fprintf_chk /usr/src/debug/gcc/gcc/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:1710
    #3 0x5e2753b4e344 in fprintf /usr/include/bits/stdio2.h:111
    #4 0x5e2753b4e344 in def_write_userfile /home/michael/projects/eggdrop/src/userent.c:112
    #5 0x5e2753b5ec44 in write_user /home/michael/projects/eggdrop/src/userrec.c:527
    #6 0x5e2753b5f49f in write_userfile /home/michael/projects/eggdrop/src/userrec.c:668
    #7 0x5e2753af3e55 in kill_bot /home/michael/projects/eggdrop/src/misc.c:1548
    #8 0x5e2753ae0ecb in got_term main.c:376

Version eggdrop v1.10.0+compilecleaning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant