commit | 17fd4b42c696edbecb2f931ea521b37b05816c76 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Thu Apr 16 18:24:51 2020 +0000 |
committer | Lorenzo Colitti <lorenzo@google.com> | Fri Apr 17 07:46:17 2020 +0000 |
tree | 781a5fcfdcae6cca59b55e876814c4ff2e35cc6b | |
parent | 548bf84252ec9de3ba77ce2de598379e44cfa3ab [diff] |
Fix parsing a NduseroptMessage inside a NetlinkMessage. The parsing code inside NduseroptMessage assumed that the message started at the beginning of the buffer. Fix this, and also restore the original endianness and limit of the buffer after parsing. Add tests for this, and make the existing tests a bit more readable. Bug: 153694684 Test: new unit tests Merged-In: Id0b4dc18dd219b4d35846e161022a37c8de3e3bb Change-Id: Id0b4dc18dd219b4d35846e161022a37c8de3e3bb