[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #50829] [CPPCHECK] Array index used before limits chec
From: |
user name |
Subject: |
[lwip-devel] [bug #50829] [CPPCHECK] Array index used before limits check. |
Date: |
Tue, 18 Apr 2017 21:58:17 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 |
URL:
<http://savannah.nongnu.org/bugs/?50829>
Summary: [CPPCHECK] Array index used before limits check.
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: username
Submitted on: Wed 19 Apr 2017 01:58:16 AM UTC
Category: IPv4
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
lwIP version: git head
_______________________________________________________
Details:
http://git.savannah.nongnu.org/cgit/lwip.git/tree/src/core/ipv4/dhcp.c#n1502
while ((q != NULL) && (options[offset] != DHCP_OPTION_END) && (offset <
offset_max)) {
should be
while ((q != NULL) && (offset < offset_max) && (options[offset] !=
DHCP_OPTION_END)) {
See https://jira.reactos.org/browse/CORE-8978 for more info.
Sorry I can't be much more helpful, I'm only a messenger, telling about an
issue someone else found.
Patch credits should go to "Kudratov Olimjon".
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?50829>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #50829] [CPPCHECK] Array index used before limits check.,
user name <=