antirez / antirez/kilo

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

オープン
#94 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C
スター
9.1k
フォーク
995
PR マージ指標
30日以内にマージされた PR はありません

説明

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)) {`

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。