Skip to content

parse_osc() memory corruption fixes#2

Open
SutekhVRC wants to merge 1 commit intobenaclejames:masterfrom
SutekhVRC:master
Open

parse_osc() memory corruption fixes#2
SutekhVRC wants to merge 1 commit intobenaclejames:masterfrom
SutekhVRC:master

Conversation

@SutekhVRC
Copy link
Contributor

Bug Fixes

  • Fix invalid pointer caused by a value vector of zero size.
  • Handle errors for extract_osc_value and extract_osc_address

Important Note: The following code was fuzzed with a few assumptions.

  • The input buffer is always 4096 bytes
  • The index passed is always 0

Ignoring these assumptions leads to many memory corruption bugs including:

  • Off-By-N
  • OBR

    - Fix invalid pointer caused by invalid packet.
    - Handle errors for extract_osc_value and extract_osc_address

Important Note: The following code was fuzzed with a few assumptions.
- The input buffer is always 4096 bytes
- The index passed is always 0

Ignoring these assumptions leads to many memory corruption bugs including:
- Off-By-N
- OBR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant