1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00
serenity/Userland/Libraries
Daniel Bertalan 7fdf4004de LibCore: Fix OOB read in Stream::BufferedSeekable::read_until_any_of
If we do not decrement `m_buffered_size` whenever we read data from the
buffer, we end up saying that there are more lines available when we
reach the end of file. This bug caused callers to read garbage data.

This also fixes an incorrect condition in an if statement. The separator
candidate is searched for in `remaining_buffer`, so the separator's
length should be compared against that.
2022-01-01 14:44:02 +01:00
..
LibArchive LibArchive: Limit all Tar header fields to their buffer length 2021-11-24 19:09:00 +02:00
LibAudio Everywhere: Refactor 'muted' to 'main_mix_muted' in all AudioConnections 2021-12-24 00:19:01 -08:00
LibC LibC: Implement `flockfile and funlockfile` 2022-01-01 09:50:32 +00:00
LibCards AK: Convert AK::Format formatting helpers to returning ErrorOr<void> 2021-11-17 00:21:13 +01:00
LibChess Everywhere: Fix -Winconsistent-missing-override warnings from Clang 2021-12-11 13:14:15 -08:00
LibCompress Everywhere: Pass AK::ReadonlyBytes by value 2021-11-11 01:27:46 +01:00
LibConfig LibConfig: Add list methods for groups and keys 2021-11-18 09:08:51 +01:00
LibCore LibCore: Fix OOB read in Stream::BufferedSeekable::read_until_any_of 2022-01-01 14:44:02 +01:00
LibCoredump LibCore+AK: Move MappedFile from AK to LibCore 2021-11-23 11:33:36 +01:00
LibCpp LibCpp: Cast unused smart-pointer return values to void 2021-12-05 15:31:03 +01:00
LibCrypt Everywhere: Use my cool new @serenityos.org email address 2021-09-01 11:37:25 +04:30
LibCrypto LibCrypto: Remove redundant __builtin_memset() call 2021-12-24 14:35:33 -08:00
LibDebug LibDebug: Add optional setup_child() callback to debugger 2021-12-22 02:14:32 -08:00
LibDesktop LibDesktop: Make allowlist APIs return ErrorOr<void> 2021-11-24 00:25:23 +01:00
LibDeviceTree Libraries: Add LibDeviceTree for manipulating OpenFirmware Device Trees 2021-10-21 19:20:03 -07:00
LibDiff LibDiff: Fix error when parsing a 'new' hunk location 2021-12-31 14:12:54 +01:00
LibDl Toolchain+Userland: Enable TLS for x86_64 2021-07-04 01:07:28 +02:00
LibDSP LibDSP: Cast unused smart-pointer return value to void 2021-12-05 15:31:03 +01:00
LibELF Kernel: Use Process::require_promise() instead of REQUIRE_PROMISE() 2021-12-29 18:08:15 +01:00
LibFileSystemAccessClient LibFileSystemAccessClient: Allow custom access rights for open/save 2021-12-23 23:25:47 -08:00
LibGemini LibGemini: Avoid implicitly copying ByteBuffer 2021-12-08 09:46:13 -08:00
LibGfx LibGfx: Mark some Matrix functions as [[nodiscard]] 2021-12-30 14:24:29 +01:00
LibGL LibGL+LibSoftGPU: Implement texture coordinate generation 2021-12-30 14:24:29 +01:00
LibGUI WindowsServer+LibGUI: Avoid getting color under cursor outside screen 2022-01-01 14:32:11 +01:00
LibHTTP LibHTTP: Avoid implicitly copying ByteBuffer 2021-12-08 09:46:13 -08:00
LibImageDecoderClient Everywhere: Pass AK::ReadonlyBytes by value 2021-11-11 01:27:46 +01:00
LibIMAP Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
LibIPC LibIPC: Add IPC::take_over_accepted_client_from_system_server<Client>() 2021-12-06 19:22:16 +01:00
LibJS LibJS: Add missing undefined fallback to IfStatement completions 2021-12-31 15:39:25 +01:00
LibKeyboard AK: Make JSON parser return ErrorOr<JsonValue> (instead of Optional) 2021-11-17 00:21:10 +01:00
LibLine LibLine: Switch all files to use east-const 2021-12-16 03:26:59 +03:30
LibM AK+Everywhere: Replace __builtin bit functions 2021-12-21 22:13:51 +01:00
LibMain LibMain: Make "Runtime error" warnln red 2021-12-23 12:41:13 -08:00
LibMarkdown Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
LibPCIDB LibCore+AK: Move MappedFile from AK to LibCore 2021-11-23 11:33:36 +01:00
LibPDF AK: Convert AK::Format formatting helpers to returning ErrorOr<void> 2021-11-17 00:21:13 +01:00
LibProtocol RequestServer+LibProtocol: Add an 'EnsureConnection' IPC endpoint 2021-09-28 22:32:31 +02:00
LibPthread LibPthread: Add POSIX spec comments to our implementations 2021-12-21 18:16:48 -08:00
LibRegex LibRegex: Make FailForks fail all forks up to the last save point 2021-12-25 18:41:10 +01:00
LibSanitizer LibSanitizer: Log UBSAN errors in red text to the debug console 2021-12-15 10:30:32 -08:00
LibSoftGPU LibGL+LibSoftGPU: Implement texture coordinate generation 2021-12-30 14:24:29 +01:00
LibSQL Everywhere: Fix -Winconsistent-missing-override warnings from Clang 2021-12-11 13:14:15 -08:00
LibSymbolication LibCore+AK: Move MappedFile from AK to LibCore 2021-11-23 11:33:36 +01:00
LibSyntax LibWeb: Implement first draft of CSS syntax highlighting :^) 2021-10-23 19:07:44 +02:00
LibSystem LibCore+LibSystem: Move syscall wrappers from LibSystem to LibCore 2021-11-23 11:33:36 +01:00
LibTest LibTest: Add EXPECT_NO_CRASH 2021-12-19 14:22:06 -08:00
LibTextCodec LibTextCodec: Add alternate Cyrillic (aka Koi8-r) encoding 2021-12-16 22:44:45 +01:00
LibThreading LibThreading: Remove redundant method 2021-11-02 11:07:26 +01:00
LibTLS LibTLS: Avoid implicitly copying ByteBuffer 2021-12-08 09:46:13 -08:00
LibUnicode LibUnicode: Remove linkage from LibUnicode to LibUnicodeData 2021-12-21 13:09:49 -08:00
LibUSBDB LibCore+AK: Move MappedFile from AK to LibCore 2021-11-23 11:33:36 +01:00
LibVideo LibCore+AK: Move MappedFile from AK to LibCore 2021-11-23 11:33:36 +01:00
LibVT Everywhere: Use 'decrease_slider_by()' method from AbstractSlider 2021-12-30 14:31:50 +01:00
LibWasm AK+Everywhere: Replace __builtin bit functions 2021-12-21 22:13:51 +01:00
LibWeb LibGUI+LibWeb: Use 'decrease_slider_by_steps()' method 2021-12-30 14:31:50 +01:00
LibWebSocket Libraries: Fix visibility of Object-derivative constructors 2021-11-02 22:56:53 +01:00
LibX86 LibX86: Mark two InstructionDescriptor functions as const 2021-12-23 12:45:36 -08:00
CMakeLists.txt LibGL+LibSoftGPU: Move rendering related code to LibSoftGPU library 2021-12-24 05:10:28 -08:00