Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2021-06-04 08:32:54 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2021-06-04 19:11:18 +0300
commit773d98714a8e9f18e0b75335735a95dc2b1c278f (patch)
treec332a1de3b0e927fd53b9d887b2eddbf9ebc24fd /tools
parent98a4911bab0c7273824b4165e0633228e1cdf66a (diff)
Explicitly check for pItem == NULL to satisfy Xcode analyzer (#667, #674)
As far as I can tell, the logic above this line does work correctly and calls `allocate_field()` in any case where iter->pData could point to pointer to NULL. But the logic depends on PB_SIZE_MAX and other subtle points, which may be why static analyzers complain. This commit makes it explicitly check and error out.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions