diff options
| author | Kenjiro Nakayama <nakayamakenjiro@gmail.com> | 2026-03-08 16:45:26 +0900 |
|---|---|---|
| committer | Kenjiro Nakayama <nakayamakenjiro@gmail.com> | 2026-03-08 16:45:26 +0900 |
| commit | e5dcc309e7dcdf7c08a656fe31e76f7304556459 (patch) | |
| tree | e50364d5b55d35e18a5a0707c1cf2ac9d131b5cd /include/compat/sys/_null.h | |
| parent | b9277f6c1fa17f21b932e7a5a76eeed16d4c456f (diff) | |
| download | portable-e5dcc309e7dcdf7c08a656fe31e76f7304556459.tar.gz portable-e5dcc309e7dcdf7c08a656fe31e76f7304556459.tar.bz2 portable-e5dcc309e7dcdf7c08a656fe31e76f7304556459.zip | |
Avoid integer overflow in posix_open on Windows
If open() fails, return the error value immediately. Adding the high bit
to -1 results in a large positive integer, which causes callers like
tls_config_load_file() to bypass their error checks.
Fix https://github.com/libressl/portable/issues/1239
Diffstat (limited to 'include/compat/sys/_null.h')
0 files changed, 0 insertions, 0 deletions
