Commit graph

9 commits

Author SHA1 Message Date
Henry Gabryjelski
1c75690b1a Various codeQL fixes
Code was previously performing arithmetic in
various loop check conditions.  Integer promotion rules could cause unintended comparisons.

`spiffs` defined `fs->block_count` as `uint32_t`, but defined `spiffs_page_ix` as `uint16_t`.  Various overflow checks detected by CodeQL and fixed by checking for those conditions before looping.
2025-01-14 18:01:09 -08:00
Henry Gabryjelski
91be146ecb CodeQL fixes for "Comparison between A of type TypeA and B of wider type TypeB" 2025-01-14 17:54:58 -08:00
Philippe Teuwen
b703bb746b Adapting license headers, WIP 2022-01-06 02:20:38 +01:00
osboxes.org
944242d929 style 2019-12-31 21:32:24 +01:00
Philippe Teuwen
bc35a96690 coverity 226497 2019-10-09 21:34:41 +02:00
iceman1001
8c4a42ff36 consider null termination 2019-10-09 10:36:34 +02:00
Philippe Teuwen
225d406d21 cppcheck fix: Checking if unsigned variable 'len_to_read' is less than zero. 2019-08-05 00:12:35 +02:00
Philippe Teuwen
9beabaabf5 make style 2019-07-23 21:33:52 +02:00
cjbrigato
5c3676ad81 ADD: Early SPIFFS implementation see #257, UPDATE HF_COLIN accordingly 2019-07-22 22:56:06 +02:00