History log of /system/core/adb/adb_utils_test.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2181c722ceac50dde3c4a399950b37e7fd6a5893 15-May-2015 Elliott Hughes <enh@google.com> Fix ' escaping in adb.

You can't just use \' inside a single-quoted string.

Bug: http://b/20323053
Bug: http://b/3090932
Change-Id: I73754b097671d02dc11c35052f0534b6dd789e4f
(cherry picked from commit 84b0bf22644b35d6b3d3f7dc96311a484c3519b3)
/system/core/adb/adb_utils_test.cpp
5498adefb00cd979137361b98fcbf8d51f72ebeb 18-Apr-2015 Elliott Hughes <enh@google.com> Use ' quoting to escape arguments.

The specific motivating case is "text;ls;1.apk", but rather than continue
adding individual characters to the list of characters to be escaped, let's
just switch to quote all arguments with ', which only leaves ' itself to be
escaped.

Bug: 20323053
Bug: 19734868
Change-Id: I8bd71db9373bc2d1169fc11e46c889da6638550a
/system/core/adb/adb_utils_test.cpp
5830577bd82fdb7c39555da20a4cf585b8bb376a 17-Apr-2015 Elliott Hughes <enh@google.com> Fix more buffer overruns.

Also add some tests.

Bug: 20323050
Change-Id: I9eaf3dc04efd85206663c4cca4f8c1208620a89a
/system/core/adb/adb_utils_test.cpp