DaanDeMeyer / reproc

A cross-platform (C99/C++11) process library
MIT License
552 stars 65 forks source link

reproc_strerror: avoid undefined behaviour for error == INT_MIN #108

Closed tautschnig closed 6 months ago

tautschnig commented 1 year ago

Invoking abs on the minimum integer has undefined behaviour. Catch this case before calling abs and return an error message instead.