antirez / antirez/kilo

Segfault at if '\<letter>' entered inside string & if compiled with musl-gcc (a proposed fix is also included)

Aperta
#94 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C
Stelle
9.1k
Fork
995
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

if kilo is compiled with the musl gcc wrapper, the following will trigger a segfault

`> kilo new_file.c`

then enter on first line:

`puts("\e`

This will trigger a segfault in musl (but not glibc)

The following will fix the problem - change line 445 from:

`if (*p == '\\') {`

To:

`if (*p == '\\' && *(p+1)) {`

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.