commit | 0c07e7a4a10f902911d93f37e01b8a0308d67e96 | [log] [tgz] |
---|---|---|
author | Samuel Tan <samueltan@google.com> | Thu Aug 13 17:25:21 2015 -0700 |
committer | Samuel Tan <samueltan@google.com> | Tue Aug 18 13:47:32 2015 -0700 |
tree | 79a7ef1a35ed5771819614c51c0b5a4a6ca159b0 | |
parent | 8e603a0d0354b88712f1a81cc48dbd9936244fd5 [diff] |
[PATCH] UPSTREAM: Zero length embedded option Cherry-picked from https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/ master/net-misc/dhcpcd/files/patches/dhcpcd-6.8.2-UPSTREAM-Zero-Length- Embedded-Option.patch. When we have a zero length for an embedded option, warn if any more data or not the last option and return the number of currently processed options. This fixes a potential buffer overrun for options where the last embedded optional is an optional string. Thanks to Paul Stewart @ Chromium for the fix. http://roy.marples.name/projects/dhcpcd/ci/732e88eaa0?sbs=0 BUG: 22956197 Change-Id: I0291624e28fcec8f4d6f3affeb8fec1fff332f19 Reviewed-on: https://chromium-review.googlesource.com/281000