commit | 004bdcf210baf1a63772bb7eca452bb0aeba010b | [log] [tgz] |
---|---|---|
author | Laslo Hunhold <dev@frign.de> | Sat Oct 08 13:13:03 2022 +0200 |
committer | Laslo Hunhold <dev@frign.de> | Sat Oct 08 13:13:03 2022 +0200 |
tree | ff048b9f211e8f8dbb3df4b33668e79b8ae2474e | |
parent | ef3e52a7f560f66df8ed1e2487872a1e62c5cedb [diff] |
Prevent undefined behaviour in herodotus_reader_copy() The first part usually catches harmless cases like "NULL + 0", but the last part prevents integer overflow in some really crazy cases that are unlikely but can still happen. Signed-off-by: Laslo Hunhold <dev@frign.de>