commit | 989ba3f4924fdc25840975a0155eccf04896aa3a | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Fri Apr 05 21:19:12 2013 -0700 |
committer | Kir Kolyshkin <kir@openvz.org> | Fri Apr 05 23:26:27 2013 -0700 |
tree | 8f21f5c5e1ecb83f499cacfd50e6aa9aad3a95b9 | |
parent | ea34ce5d0aed001e23821d0c73f032c98bf0f8bf [diff] |
parse_netif_str_cmd(): fix off-by-one buffer overruns Found by coverity: CID 996843, 996842, 996841. overrun-buffer-arg: Overrunning array "dev->dev_name_ve" of 16 bytes by passing it to a function which accesses it at byte offset 16 using argument "len + 1" (which evaluates to 17). Same for dev->dev_name and dev->dev_bridge. Signed-off-by: Kir Kolyshkin <kir@openvz.org>