Android-x86
Fork

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-e2fsprogs: コミット

external/e2fsprogs


コミットメタ情報

リビジョン2fee961aa5a47f113b81ada495b18c1452082fde (tree)
日時2018-08-11 05:24:36
作者Jeff Sharkey <jsharkey@andr...>
コミッターandroid-build-team Robot

ログメッセージ

Ignore quotes in safe_print().

If the value being printed has embedded quotes ("), then printing
those quotes could confuse other tools when parsing the value.

This is the simplest CL to fix the security issue, and we can circle
back to think about more robust escaping in a future CL.

Bug: 80436257
Test: manual
Change-Id: Ica17f2c5701573bceafe34f20110d230a3925483
(cherry picked from commit efe90c297a8df591c051fdbfacb92b5283390bba)

変更サマリ

差分

--- a/misc/blkid.c
+++ b/misc/blkid.c
@@ -87,7 +87,9 @@ static void safe_print(const char *cp, int len)
8787 fputc('^', stdout);
8888 ch ^= 0x40; /* ^@, ^A, ^B; ^? for DEL */
8989 }
90- fputc(ch, stdout);
90+ if (ch != '"') {
91+ fputc(ch, stdout);
92+ }
9193 }
9294 }
9395
旧リポジトリブラウザで表示