]> git.ipfire.org Git - thirdparty/coreutils.git/commit
stdbuf: don’t allocate more than SIZE_MAX / 2
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 May 2025 20:01:31 +0000 (13:01 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 May 2025 20:02:31 +0000 (13:02 -0700)
commit2b54fe97ffa29f1559435e2c76ce09291a96396d
tree42eb31f28ec1ddd6f6e319f04444fa6dfa5dbb7b
parent610725919c567f65fe148e95ed272f04df2ffb1e
stdbuf: don’t allocate more than SIZE_MAX / 2

* src/libstdbuf.c (apply_mode): Be more conservative about
sizes passed to malloc, since we can’t rely on Gnulib malloc.
src/libstdbuf.c