mpd/src/system
Max Kellermann 73b5d0a9b9 system/Error: truncate the snprintf() return value
snprintf() does not return the (truncated) length actually written,
but the length that would be needed if the buffer were large enough.
This API usage mistake in FormatLastError() can lead to overflow of
the stack buffer, crashing the process (Windows only).

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1676
2022-11-28 09:42:37 +01:00
..
Clock.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
Clock.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
EpollFD.cxx check.h: remove obsolete header 2018-11-19 16:33:49 +01:00
EpollFD.hxx system/FileDescriptor: move to io/ 2020-05-05 14:27:03 +02:00
Error.hxx system/Error: truncate the snprintf() return value 2022-11-28 09:42:37 +01:00
EventFD.cxx remove gcc_unused 2020-03-16 00:08:21 -07:00
EventFD.hxx system/EventFD: Get() returns FileDescriptor 2021-01-11 17:38:30 +01:00
EventPipe.cxx system/EventPipe: use class Unique{Socket,File}Descriptor 2021-01-11 17:51:22 +01:00
EventPipe.hxx system/EventPipe: use class Unique{Socket,File}Descriptor 2021-01-11 17:51:22 +01:00
KernelVersion.cxx use [[gnu::pure]] instead of gcc_pure 2021-02-12 18:34:16 +01:00
KernelVersion.hxx use [[gnu::pure]] instead of gcc_pure 2021-02-12 18:34:16 +01:00
meson.build system/FatalError: remove obsolete library 2021-10-13 16:53:01 +02:00
PeriodClock.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
SignalFD.cxx replace assert.h with cassert 2020-03-12 15:25:38 -07:00
SignalFD.hxx system/FileDescriptor: move to io/ 2020-05-05 14:27:03 +02:00