bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libzstd :: non-regular file test failure


From: Sergey Bugaev
Subject: Re: libzstd :: non-regular file test failure
Date: Wed, 4 Dec 2024 11:56:16 +0300

On Wed, Dec 4, 2024 at 11:26 AM Samuel Thibault <samuel.thibault@gnu.org> wrote:
> It's probably worth checking other _write methods in libstore/

That, and also glibc should make more efforts to be resilient against
servers returning bogus read/write amounts, whether by mistake like
here or maliciously. If we don't sanitize 'count', the

data = (void *) ((char *) data + count);

line in _IO_new_file_write doesn't look safe at all. That's an
arbitrary memory disclosure and a crash/DoS in plain sight.

Sergey



reply via email to

[Prev in Thread] Current Thread [Next in Thread]