このサイトはJavaScriptを使用しています
ホーム
エクスプローラー
ヘルプ
サインイン
Immanuel
/
btpd
ウォッチ
1
スター
0
フォーク
0
コード
課題
0
プルリクエスト
0
リリース
0
Wiki
アクティビティ
ソースを参照
Fix bug in benc_length. benc_first shouldn't be used here since it returns
NULL on empty lists or dictionaries. This could cause crashes. Reported by Robert Jonsson.
master
Richard Nyberg
18年前
親
2886768d30
コミット
8f4fde49ee
1個のファイルの変更
、
1行の追加
、
1行の削除
分割表示
差分オプション
統計情報を表示
Patchファイルをダウンロード
Diffファイルをダウンロード
+1
-1
misc/benc.c
+ 1
- 1
misc/benc.c
ファイルの表示
@@ -114,7 +114,7 @@ benc_length(const char *p)
case 'd':
case 'l':
blen = 2; // [l|d]...e
next =
benc_first(p)
;
next =
p + 1
;
while (*next != 'e') {
size_t len = benc_length(next);
blen += len;
書き込み
プレビュー
読み込み中…
キャンセル
保存