Menu

#2757 memory leaks on command()

None
closed-rejected
nobody
None
2025-01-15
2025-01-15
No

version: gnuplot 6.1 last modified 2025-01-11
system: ubuntu 20.04

use this command to reproduce: gnutplot poc
message from ASAN:

==1693213==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 5 byte(s) in 1 object(s) allocated from:
#0 0x7f0954526808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7f095448f243 in __interceptor_strndup ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:379
#2 0x557a50031b79 in command /home/fizz/target_program/tmp/gnuplot-main/src/command.c:844
#3 0x557a50031b79 in step_through_line /home/fizz/target_program/tmp/gnuplot-main/src/command.c:549

SUMMARY: AddressSanitizer: 5 byte(s) leaked in 1 allocation(s).

1 Attachments

Discussion

  • Ethan Merritt

    Ethan Merritt - 2025-01-15
    • status: open --> closed-rejected
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2025-01-15

    This is not an interesting bug report.

    Garbage in = Garbage Out

    Feeding the program all that binary noise produces nothing worse than a memory leak. Valgrind says "25 bytes in 5 blocks", which I think is just five commands that were abandoned part way through execution when the program realized they were garbage.

     

Log in to post a comment.