]> sourceware.org Git - glibc.git/commit
Add a new fwrite test that exercises buffer overflow
authorTulio Magno Quites Machado Filho <tuliom@redhat.com>
Thu, 26 Sep 2024 14:30:29 +0000 (11:30 -0300)
committerTulio Magno Quites Machado Filho <tuliom@redhat.com>
Mon, 30 Sep 2024 18:57:12 +0000 (15:57 -0300)
commit97aa92263a151d12286d27d327edc35475fe521c
tree81e9c053f40b112269a3f30abbd7c88b0b026b7a
parent483443d3211532903d7e790211af5a1d55fdb1f3
Add a new fwrite test that exercises buffer overflow

Exercises fwrite's internal buffer when doing a file operation.
The new test, exercises 2 overflow behaviors:

1. Call fwrite multiple times making usage of fwrite's internal buffer.
   The total number of bytes written is larger than fwrite's internal
   buffer, forcing an automatic flush.

2. Call fwrite a single time with an amount of data that is larger than
   fwrite's internal buffer.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
stdio-common/Makefile
stdio-common/tst-fwrite-overflow.c [new file with mode: 0644]
This page took 0.036405 seconds and 5 git commands to generate.