summaryrefslogtreecommitdiff
path: root/lockme.h
diff options
context:
space:
mode:
authorNathaniel Ferguson <nathaniel@leapfrog.foundation>2020-05-03 03:17:46 -0400
committerTobias Klauser <tklauser@distanz.ch>2020-05-04 14:09:51 +0200
commit3e69db49e3c0b8e59c80782e6bad3b02336a28d2 (patch)
treeac3a8b0c9f95c50d22e28fbef658c8c80e67888d /lockme.h
parenta8c3c53c271b21878ea7c1c083bb5abfd634bb41 (diff)
proto_lldp: fix pointer increment in LLDP_TLV_SYSTEM_CAP case
Fixed a typo wherein a pointer was incremented by sizeof(uint32_t) after reading sizeof(uint16_t) and before reading another sizeof(uint16_t). In essence a potential out of bounds memory access (read) due to improper increment of pointer Signed-off-by: Nathaniel Ferguson <nathaniel@leapfrog.foundation> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'lockme.h')
0 files changed, 0 insertions, 0 deletions
compiling userspace programs if BITS_PER_LONG is #defined by userspace with the sizeof() compiler builtin. Solve this problem by using __BITS_PER_LONG instead. Since we now #include asm/bitsperlong.h avoid further potential userspace pollution by moving the #define of SHIFT_PER_LONG to bitops.h which is not exported to userspace. This patch unbreaks compiling qemu on hppa/parisc. Signed-off-by: Helge Deller <deller@gmx.de> Cc: <stable@vger.kernel.org>
Diffstat (limited to 'tools/testing/selftests/exec')