commit | 4dbadf51f66fccf3f22af531202dcee55a96ee51 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Wed Aug 08 17:46:10 2018 -0700 |
committer | Steven Moreland <smoreland@google.com> | Wed Aug 08 18:00:26 2018 -0700 |
tree | 4ac8100427546db90467b87b6ee0d7586cc14173 | |
parent | 5b708384225e4d765474b314963912d2be7ed372 [diff] |
Fix segfaults in some error cases. BEFORE: $ aidl -h aidl: option requires an argument -- 'h' Segmentation fault $ aidl asdf terminating with uncaught exception of type std::out_of_range: basic_string Aborted NOW: $ aidl -h aidl: option requires an argument -- 'h' usage: ... $ aidl adsf Expected .aidl file for input but got 'adsf' (also, some error checks were missing) Bug: N/A Test: runtests.sh Change-Id: I28584fdf3eb74a64cec260e80fc32f6c9cd99f4e