radareorg / sdb

Simple and fast string based key-value database with support for arrays and json
https://www.radare.org/
MIT License
218 stars 62 forks source link

Added missing null check #238

Closed MyEyes closed 3 years ago

MyEyes commented 3 years ago

Detailed description

Added a missing null check in ht_(find_kv) in ht_inc.c While fuzzing I caused this nullpointer dereference and while looking for the root cause I realized that a check is missing.

Test plan

I really just added an if to avoid a null pointer dereference.

Closing issues

None