ladybird/Libraries/LibCore
DrewStratford 2a8de4cdec LibCore: Fix segfault in CArgsParser (#1072)
CArgsParser::parse_next_param did not properly ensure that, when
a param required a following argument, there were enough parameters left to
complete the parse. This meant that params_left could become negative,
avoiding parse_next_param's termination condition, and cause a segfault
when reading from argv with an out of bounds index.

This fixes the check to ensure that we do in fact have the right amount
of parameters and also adds an assertion to ensure that params_left does
not become negative.
2020-01-13 14:52:25 +01:00
..
CArgsParser.cpp LibCore: Fix segfault in CArgsParser (#1072) 2020-01-13 14:52:25 +01:00
CArgsParser.h AK: Rename <AK/AKString.h> to <AK/String.h> 2019-09-06 15:36:54 +02:00
CConfigFile.cpp WindowServer+LibGUI: Implement basic color theming 2019-12-23 20:33:01 +01:00
CConfigFile.h LibCore: Fix a typo in CConfigFile.h 2020-01-07 12:46:02 +01:00
CDirIterator.cpp CDirIterator: Fix another instance of StringView::characters() misuse. 2019-07-08 14:03:19 +02:00
CDirIterator.h AK: Rename <AK/AKString.h> to <AK/String.h> 2019-09-06 15:36:54 +02:00
CElapsedTimer.cpp Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
CElapsedTimer.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
CEvent.cpp LibCore+LibGUI: Allow inserting a CObject/GWidget before another 2019-11-05 20:41:27 +01:00
CEvent.h LibCore+LibGUI: Allow inserting a CObject/GWidget before another 2019-11-05 20:41:27 +01:00
CEventLoop.cpp LibCore: Oops, we were forgetting to destroy disconnected RPC clients 2020-01-05 17:54:48 +01:00
CEventLoop.h AK+LibCore: Add an IDAllocator and use to allocate timer ids 2020-01-05 09:00:05 +01:00
CFile.cpp LibCore: Make CFile::open() truncate when opening something "WriteOnly" 2019-11-26 14:32:59 +01:00
CFile.h LibCore: Convert CFile to ObjectPtr 2019-09-21 20:50:06 +02:00
CGzip.cpp LibCore: compile puff.c as a separate object 2019-12-25 10:11:09 +01:00
CGzip.h LibCore: Rename class Gzip -> CGZip 2019-11-10 12:52:23 +01:00
CHttpJob.cpp LibCore: Silence some aggressive CSocket and CHttpJob debug spam 2019-12-14 11:30:18 +01:00
CHttpJob.h LibCore: Make CHttpJob::response() return a CHttpResponse* 2019-12-10 20:46:33 +01:00
CHttpRequest.cpp LibCore: Remove ObjectPtr in favor of RefPtr 2019-09-22 00:31:54 +02:00
CHttpRequest.h LibCore: Remove ObjectPtr in favor of RefPtr 2019-09-22 00:31:54 +02:00
CHttpResponse.cpp Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
CHttpResponse.h AK: Rename <AK/AKString.h> to <AK/String.h> 2019-09-06 15:36:54 +02:00
CIODevice.cpp ByteBuffer: Remove pointer() in favor of data() 2019-09-30 08:57:01 +02:00
CIODevice.h LibCore: Fix errors when compiling LibCore using clang instead of gcc 2019-12-27 02:19:55 +01:00
CIODeviceStreamReader.h LibCore: Rename CFileStreamReader => CIODeviceStreamReader. 2019-07-30 15:16:39 +02:00
CLocalServer.cpp LibCore: Stop making the RPC sockets go=rw 2020-01-03 20:21:39 +01:00
CLocalServer.h SystemServer+LibCore: Implement socket takeover 2019-11-26 19:58:25 +01:00
CLocalSocket.cpp LibCore: Allow LibCore to be compiled on macOS host 2019-12-27 02:19:55 +01:00
CLocalSocket.h LibCore: Convert CLocalSocket to ObjectPtr 2019-09-21 15:25:08 +02:00
CNetworkJob.cpp LibCore: Have CNetworkJob protect itself during the on_finish callback 2019-11-23 21:42:02 +01:00
CNetworkJob.h LibCore: Make it possible to cancel pending CNetworkJobs 2019-09-21 17:32:26 +02:00
CNetworkResponse.cpp Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
CNetworkResponse.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
CNotifier.cpp LibCore: Make CSocket's notifiers into children of the CSocket 2019-08-18 11:54:39 +02:00
CNotifier.h LibCore: Remove ObjectPtr in favor of RefPtr 2019-09-22 00:31:54 +02:00
CObject.cpp LibCore+LibGUI: Don't fire timers in non-visible windows by default 2019-12-29 16:03:36 +01:00
CObject.h LibCore+LibGUI: Don't fire timers in non-visible windows by default 2019-12-29 16:03:36 +01:00
CProcessStatisticsReader.cpp SystemMonitor+LibCore: Show process pledges in SystemMonitor :^) 2020-01-11 21:33:12 +01:00
CProcessStatisticsReader.h SystemMonitor+LibCore: Show process pledges in SystemMonitor :^) 2020-01-11 21:33:12 +01:00
CSocket.cpp LibCore: Silence some aggressive CSocket and CHttpJob debug spam 2019-12-14 11:30:18 +01:00
CSocket.h CSocket: Don't create the read notifier until after we've connected 2019-09-22 21:46:46 +02:00
CSocketAddress.h LibCore: CSocketAddress: pull in netinet/in.h 2020-01-02 04:09:56 +01:00
CSyscallUtils.h LibCore: Improve logging of errors in safe_syscall() somewhat 2019-12-01 16:47:28 +01:00
CTCPServer.cpp LibCore: Make CTCPServer's local address/port getters return Optionals 2019-11-04 13:07:41 +01:00
CTCPServer.h LibCore: Make CTCPServer's local address/port getters return Optionals 2019-11-04 13:07:41 +01:00
CTCPSocket.cpp CSocket: Don't create the read notifier until after we've connected 2019-09-22 21:46:46 +02:00
CTCPSocket.h LibCore: Convert CTCPSocket to ObjectPtr, add construct() helper 2019-09-21 15:25:08 +02:00
CTimer.cpp Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
CTimer.h LibCore: Remove ObjectPtr in favor of RefPtr 2019-09-22 00:31:54 +02:00
CUserInfo.cpp LibCore: Make get_current_user_home_path() return String & close passwd 2019-08-03 08:32:07 +02:00
CUserInfo.h AK: Rename <AK/AKString.h> to <AK/String.h> 2019-09-06 15:36:54 +02:00
Makefile LibCore: compile puff.c as a separate object 2019-12-25 10:11:09 +01:00
puff.c LibCore: Move puff() from LibDraw to LibCore 2019-11-23 23:43:37 +01:00
puff.h LibCore: compile puff.c as a separate object 2019-12-25 10:11:09 +01:00