Files
mirror_zfs/cmd
Alexander Moch 8e946b5ae8 cmd/ztest: avoid PATH_MAX stack allocation in ztest_get_zdb_bin() (#18085)
Calling realpath(path, buf) can trigger fortified header wrappers that
allocate a PATH_MAX-sized temporary buffer on the stack, exceeding the
4 KiB frame limit on some systems. Use the heap-allocating
realpath(path, NULL) form instead.

Sponsored-by: ERNW Research GmbH - https://ernw-research.de/

Signed-off-by: Alexander Moch <amoch@ernw.de>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
2026-02-10 16:59:11 -08:00
..
2025-03-13 17:56:27 -07:00
2025-09-10 15:01:20 -07:00
2025-03-13 17:56:27 -07:00
2025-09-10 15:01:20 -07:00
2025-03-13 17:56:27 -07:00
2025-03-13 17:56:27 -07:00