← Commit list

2bb3643bc1

Viktor Szakats
Viktor Szakats
2026-03-19
SUCCESS Duration: 273s

Subject

sws: fix potential OOB write

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

tests/server/sws.c+1 -1
@@ -1127,7 +1127,7 @@ static int sws_get_request(curl_socket_t sock, struct sws_httprequest *req)
logmsg("wait for websocket traffic");
do {
got = sread(sock, reqbuf + req->offset,
- sizeof(req->reqbuf) - req->offset);
+ sizeof(req->reqbuf) - 1 - req->offset);
if(got > 0) {
req->offset += got;
logmsg("Got %zu bytes from client", got);