Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
bluez
bluez-tools-csr-Fix-possible-buffer-overflow.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bluez-tools-csr-Fix-possible-buffer-overflow.patch of Package bluez
From 8514068150759c1d6a46d4605d2351babfde1601 Mon Sep 17 00:00:00 2001 From: Johan Hedberg <johan.hedberg@intel.com> Date: Wed, 7 Sep 2016 08:45:12 +0300 Subject: [PATCH] tools/csr: Fix possible buffer overflow Make sure we don't write past the end of the array. --- tools/csr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/csr.c b/tools/csr.c index 2c0918909..15ae7c4fb 100644 --- a/tools/csr.c +++ b/tools/csr.c @@ -2756,7 +2756,7 @@ static int parse_line(char *str) off++; - while (1) { + while (length <= sizeof(array) - 2) { value = strtol(off, &end, 16); if (value == 0 && off == end) break; -- 2.14.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor