Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP6
ucl
06-Fix-memory-errors.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 06-Fix-memory-errors.patch of Package ucl
From: Robert Luberda <robert@debian.org> Date: Wed, 29 Aug 2018 12:37:32 +0200 Subject: Fix memory errors shown by valgrind Initialize memory in two places in ucl_swd.ch to get rid of memory errors detected by valgrind in a test program included in the bug report. Bugs-Debian: https://bugs.debian.org/804474 --- src/ucl_swd.ch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ucl_swd.ch b/src/ucl_swd.ch index abc0ae1..575d4de 100644 --- a/src/ucl_swd.ch +++ b/src/ucl_swd.ch @@ -330,7 +330,7 @@ int swd_init(ucl_swd_t *s, const ucl_bytep dict, ucl_uint dict_len) else s->rp += s->b_size - s->node_count; -#if defined(__UCL_CHECKER) +#if 1 /*defined(__UCL_CHECKER)*/ /* initialize memory for the first few HEAD3 (if s->ip is not far * enough ahead to do this job for us). The value doesn't matter. */ if (s->look < 3) @@ -377,7 +377,7 @@ void swd_getbyte(ucl_swd_t *s) { if (s->look > 0) --s->look; -#if defined(__UCL_CHECKER) +#if 1 /*defined(__UCL_CHECKER)*/ /* initialize memory - value doesn't matter */ s->b[s->ip] = 0; if (s->ip < s->f)
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