1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators
Itamar 1aa8f73ddb IPCCompiler: Don't loop endlessly on nameless parameters
Previously, given a malformed IPC call declaration, where a parameter
does not have a name, the IPCCompiler would spin endlessly while
consuming more and more memory.

This is because it parses the parameter type incorrectly
(it consumes superfluous characters into the parameter type).

An example for such malformed declaration is:
tokens_info_result(Vector<GUI::AutocompleteProvider::TokenInfo>) =|

As a temporary fix, this adds VERIFY calls that would fail if we're at
EOF when parsing parameter names.

A real solution would be to parse C++ parameter types correctly.
LibCpp's Parser could be used for this task.
2022-01-29 12:44:15 +01:00
..
IPCCompiler IPCCompiler: Don't loop endlessly on nameless parameters 2022-01-29 12:44:15 +01:00
LibEDID Meta+LibEDID: Download and generate the PNP ID database 2022-01-23 22:45:21 +00:00
LibTimeZone LibTimeZone: Handle time zones which begin the year in daylight savings 2022-01-25 18:39:36 +00:00
LibUnicode LibUnicode: Parse and generate relative-time format patterns 2022-01-27 21:16:44 +00:00
LibWeb AK: Standardize the behaviour of GenericLexer::consume_until overloads 2022-01-25 13:41:09 +03:30
StateMachineGenerator AK: Standardize the behaviour of GenericLexer::consume_until overloads 2022-01-25 13:41:09 +03:30
CMakeLists.txt Meta+LibEDID: Download and generate the PNP ID database 2022-01-23 22:45:21 +00:00