armink / EasyFlash

Lightweight IoT device information storage solution: KV/IAP/LOG. | 轻量级物联网设备信息存储方案:参数存储、在线升级及日志存储 ,全新一代版本请移步至 https://github.com/armink/FlashDB
MIT License
2.01k stars 765 forks source link

Null pointer dereference issue #129

Closed firmianay closed 12 months ago

firmianay commented 2 years ago

hi, there seems to be a Null pointer dereference issue in the find_env function of the ef-env.c when EF_ENV_USING_CACHE is enable:

del_env(NULL, env, false);

if (find_env(key, &env)) {

size_t key_len = strlen(key);
armink commented 2 years ago

你好,方便提交 PR 吗

firmianay commented 2 years ago

我本身对easyflash不熟悉,只是发现了这个问题,还是作者改一下吧