Files
libarchive/cpio
Tobias Stoeckmann bd974e1b7b tools: Fix stack overflow with many arguments (#2122)
Supplying a lot of "-" arguments to tools can lead to stack overflow due
to recursive *_getopt function calls.

Proof of Concept:

1. Compile libarchive with Visual Studio 2022
2. Call bsdtar with insane amount of arguments
```
PS> bsdtar.exe ("- "*10000).split(" ")
```
The event log shows that bsdtar.exe failed with `0xc00000fd` (stack
overflow).

If compiled with gcc, this does not happen by default because the code
is internally optimized to use this suggested loop instead. You have to
compile with CFLAGS="-O0" to provoke it with gcc as well.
2024-04-12 22:15:53 -07:00
..
2023-11-20 17:41:49 -08:00
2023-11-20 17:41:49 -08:00
2023-11-20 17:41:49 -08:00
2023-11-20 17:41:49 -08:00
2023-11-20 17:41:49 -08:00
2023-11-20 17:41:49 -08:00