Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
openwsman
0012-iniparser-fix-possible-crash-in-dictionary...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0012-iniparser-fix-possible-crash-in-dictionary_get.patch of Package openwsman
From 9a6480864aa5b49a9946f6b9f63c34389d326b29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de> Date: Tue, 25 Aug 2015 16:22:33 +0200 Subject: [PATCH 12/15] iniparser: fix possible crash in dictionary_get() --- src/lib/u/iniparser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/u/iniparser.c b/src/lib/u/iniparser.c index a6031e8797a7..1c269583254c 100644 --- a/src/lib/u/iniparser.c +++ b/src/lib/u/iniparser.c @@ -285,7 +285,7 @@ static char * dictionary_get(dictionary * d, char * key, char * def) hash = dictionary_hash(key); for (i=0 ; i<d->size ; i++) { - if (d->key==NULL) + if (d->key[i]==NULL) continue ; /* Compare hash */ if (hash==d->hash[i]) { -- 2.18.0
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