scrut(1) buffer overflow #40

Closed
opened 2024-02-02 07:55:34 -07:00 by trinity · 0 comments
Owner

There's a buffer overflow in scrut(1); if all possible options are specified once, any additional options will exceed the ops array. See e246290bff/src/scrut.c (L42). This should be a one-line fix, I'm just logging it here so I can get to it later.

This wouldn't occur in normal usage but may have security ramifications (you can write any char in options to other places in memory).

There's a buffer overflow in scrut(1); if all possible options are specified once, any additional options will exceed the ops array. See https://git.tebibyte.media/bonsai/coreutils/src/commit/e246290bff7171144041e8ceba104d49dfcd18a8/src/scrut.c#L42. This should be a one-line fix, I'm just logging it here so I can get to it later. This wouldn't occur in normal usage but may have security ramifications (you can write any char in options to other places in memory).
trinity added the
bug
label 2024-02-02 07:55:34 -07:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: bonsai/harakit#40
No description provided.