Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
netatalk.30708
netatalk-CVE-2022-43634.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File netatalk-CVE-2022-43634.patch of Package netatalk.30708
diff --git a/libatalk/dsi/dsi_write.c b/libatalk/dsi/dsi_write.c index fd8fe2c52..156965fb0 100644 --- a/libatalk/dsi/dsi_write.c +++ b/libatalk/dsi/dsi_write.c @@ -23,7 +23,7 @@ #include <atalk/util.h> #include <atalk/logger.h> -size_t dsi_writeinit(DSI *dsi, void *buf, const size_t buflen _U_) +size_t dsi_writeinit(DSI *dsi, void *buf, const size_t buflen) { size_t bytes = 0; dsi->datasize = ntohl(dsi->header.dsi_len) - dsi->header.dsi_data.dsi_doff; @@ -31,7 +31,7 @@ size_t dsi_writeinit(DSI *dsi, void *buf, const size_t buflen _U_) if (dsi->eof > dsi->start) { /* We have data in the buffer */ bytes = MIN(dsi->eof - dsi->start, dsi->datasize); - memmove(buf, dsi->start, bytes); + memmove(buf, dsi->start, MIN(buflen, bytes)); dsi->start += bytes; dsi->datasize -= bytes; if (dsi->start >= dsi->eof)
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