OSC-8 memory leak #495

Closed
opened 6 months ago by dnkl · 1 comments
dnkl commented 6 months ago
Owner
  1. cat /dev/urandom
  2. wait
  3. exit foot
Direct leak of 396 byte(s) in 4 object(s) allocated from:
    #0 0x7f20efde9a69 in __interceptor_strdup /build/gcc/src/gcc/libsanitizer/asan/asan_interceptors.cpp:452
    #1 0x55beaf8b4b75 in xstrdup ../../xmalloc.c:45
    #2 0x55beaf861d2a in term_osc8_open ../../terminal.c:3078
    #3 0x55beaf8ac084 in osc_uri ../../osc.c:492
    #4 0x55beaf8ada6d in osc_dispatch ../../osc.c:678
    #5 0x55beaf881e65 in action_osc_end ../../vt.c:514
    #6 0x55beaf885832 in state_osc_string_switch ../../vt.c:1029
    #7 0x55beaf8869a8 in vt_from_slave ../../vt.c:1304
    #8 0x55beaf829bd1 in fdm_ptmx ../../terminal.c:255
    #9 0x55beaf72a355 in fdm_poll ../../fdm.c:459
    #10 0x55beaf755c6a in main ../../main.c:535
    #11 0x7f20eee0fb24 in __libc_start_main (/usr/lib/libc.so.6+0x27b24)
1. `cat /dev/urandom` 2. wait 3. exit foot ``` Direct leak of 396 byte(s) in 4 object(s) allocated from: #0 0x7f20efde9a69 in __interceptor_strdup /build/gcc/src/gcc/libsanitizer/asan/asan_interceptors.cpp:452 #1 0x55beaf8b4b75 in xstrdup ../../xmalloc.c:45 #2 0x55beaf861d2a in term_osc8_open ../../terminal.c:3078 #3 0x55beaf8ac084 in osc_uri ../../osc.c:492 #4 0x55beaf8ada6d in osc_dispatch ../../osc.c:678 #5 0x55beaf881e65 in action_osc_end ../../vt.c:514 #6 0x55beaf885832 in state_osc_string_switch ../../vt.c:1029 #7 0x55beaf8869a8 in vt_from_slave ../../vt.c:1304 #8 0x55beaf829bd1 in fdm_ptmx ../../terminal.c:255 #9 0x55beaf72a355 in fdm_poll ../../fdm.c:459 #10 0x55beaf755c6a in main ../../main.c:535 #11 0x7f20eee0fb24 in __libc_start_main (/usr/lib/libc.so.6+0x27b24) ```
dnkl added the
bug
label 6 months ago
dnkl added the
easy
label 6 months ago
Poster
Owner

To reproduce: echo -e '\e]8;;http://foo/bar;\e\\\ec'.

I.e. "open" an OSC-8 URI, then reset the terminal.

To reproduce: `echo -e '\e]8;;http://foo/bar;\e\\\ec'`. I.e. "open" an OSC-8 URI, then reset the terminal.
dnkl referenced this issue from a commit 6 months ago
dnkl referenced this issue from a commit 6 months ago
dnkl closed this issue 6 months ago
dnkl referenced this issue from a commit 6 months ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.