Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
yodl
yodl-CVE-2016-10375.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File yodl-CVE-2016-10375.patch of Package yodl
diff --git a/yodl/src/queue/queuepush.c b/yodl/src/queue/queuepush.c index 378dc44..03cff1d 100644 --- a/src/queue/queuepush.c +++ b/src/queue/queuepush.c @@ -29,8 +29,11 @@ void queue_push(register Queue *qp, size_t extra_length, char const *info) if (extra_length > available_length) { + size_t original_length = memory_length; + /* enlarge the buffer: */ memory_length += extra_length - available_length + BLOCK_QUEUE; + cp = new_memory(memory_length, sizeof(char)); if (message_show(MSG_INFO)) @@ -48,7 +51,7 @@ void queue_push(register Queue *qp, size_t extra_length, char const *info) } else /* q as one block */ { - memcpy(cp, qp->d_memory, memory_length);/* cp existing buffer */ + memcpy(cp, qp->d_memory, original_length);/* cp existing buffer */ qp->d_read = cp + (qp->d_read - qp->d_memory); qp->d_write = cp + (qp->d_write - qp->d_memory); }
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