Skip to content

Conversation

SwitchbackEngineer
Copy link
Contributor

@SwitchbackEngineer SwitchbackEngineer commented Apr 28, 2025

Closes #415

Summary

When running the fuzz test for tpcitem_extract_key, a failure was encountered quickly where the call used to get the key value is being used on a non-i32 value, which leads to a crash.

Architectural Changes

No change

New Features

No change

Improvements

No change

Bug Fixes

Return a -1 if the TPC Item key extraction cannot unwrap the value.

Testing and validation

Issue was uncovered with minimal run time during fuzz tests. This time, the tpcitem_extract_key test was run for 10 minutes to ensure no additional failures need to be addressed. Note, the previous failures were found within 10 seconds of fuzz testing.
Command is cargo fuzz run tpcitem_extract_key -- -max_total_time=600

Documentation

This PR does not primarily deal with documentation changes.

@ChristopherRabotin
Copy link
Member

Productive evening, thanks!

@ChristopherRabotin ChristopherRabotin merged commit 273a5da into nyx-space:master Apr 28, 2025
14 of 16 checks passed
@SwitchbackEngineer SwitchbackEngineer deleted the stephan/address_tpcitem_extract_key_fuzz_failure branch April 28, 2025 04:14
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.

Extracting TPC Item Key Can Crash
2 participants