summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/CMakeLists.txt
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2024-07-29 12:30:30 +0200
committerJo-Philipp Wich <jo@mein.io>2024-07-29 13:45:20 +0200
commite391ef5631cdc2a9f7f69504cd1e57d7ca510969 (patch)
tree503d212d8a737b29ba2fee0f068dc8dbc42bec60 /tests/custom/CMakeLists.txt
parentb391fd7a77f5cb6fd34650dc7a90bb4f8c120131 (diff)
main: prevent invalid memory access when executing empty stdin
In case the ucode cli executes stdin with zero bytes length, ensure to pass a dummy string instead of a NULL pointer to uc_source_new_buffer() to prevent libc's fmemopen() from writing to nonexistent memory. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/custom/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions