commit | 606f78e724b44f8204b3e106bcaf7c9aa3d51c65 | [log] [tgz] |
---|---|---|
author | Paul Wankadia <junyer@google.com> | Thu Jan 12 23:55:21 2017 +1100 |
committer | Paul Wankadia <junyer@google.com> | Thu Jan 12 12:58:22 2017 +0000 |
tree | 91a4ad84deae12b044294653afd78b0312dae951 | |
parent | ea073665db4975772558f58bd431d2afe2428e92 [diff] |
Address undefined behaviour in StringPiece code. http://en.cppreference.com/w/c/string/byte/memcmp says: "The behavior is undefined if access occurs beyond the end of either object pointed to by lhs and rhs. The behavior is undefined if either lhs or rhs is a null pointer." Fixes #129. Change-Id: Ibc73788dc7414c08fc1427d8dc06ad542de9798c Reviewed-on: https://code-review.googlesource.com/10292 Reviewed-by: Paul Wankadia <junyer@google.com>