mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
Shell: Make history range values larger than u32 a syntax error
Found by oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=29792&sort=reported&q=serenity
This commit is contained in:
parent
d4dd4a82bb
commit
e3ec759f97
3 changed files with 28 additions and 5 deletions
|
@ -908,6 +908,7 @@ struct HistorySelector {
|
|||
WordSelectorKind kind { Index };
|
||||
size_t selector { 0 };
|
||||
Position position;
|
||||
RefPtr<AST::SyntaxError> syntax_error_node;
|
||||
|
||||
size_t resolve(size_t size) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue