esp-idf/components
Sudeep Mohanty c6134337a6 ringbuf: Fix bug where comparision between a signed and unsigned operand resulted in incorrect free size for no-split/allow-split buffers
This commit fixes a bug in no-split and allow-split ring buffers free buffer size calculation.
When the free size available in the buffers less than the size of one item header,
the function prvGetCurMaxSizeNoSplit/AllowSplit() incorrectly returned the maxItemSize instead of 0.
This is due to the comparision between a negative and a positive value
where both operands are treated as unsigned during the comparision operation,
thereby treating the negative operand as a large integer.

Also added new unit tests to test buffer-full and almost-full conditions
where this scenario is likely to be hit.

Closes https://github.com/espressif/esp-idf/issues/7344
Closes https://github.com/espressif/esp-idf/pull/7371
2021-12-27 15:14:17 +08:00
..
app_trace gcov: add stub table size entry 2021-09-15 22:57:02 +03:00
app_update docs: define __DOXYGEN__ for doxygen builds 2021-11-04 10:22:21 +08:00
asio esp_ipc: fix race condition in ipc task 2021-09-15 22:57:02 +03:00
bootloader secure_boot/esp32s2: Disable read protecting of efuses 2021-08-26 12:05:39 +05:30
bootloader_support Merge branch 'bugfix/bootloader_debug_buffers_v4.2' into 'release/v4.2' 2021-12-07 02:34:42 +00:00
bt Merge branch 'bugfix/fix_spp_listen_err_v4.2' into 'release/v4.2' 2021-12-21 05:28:25 +00:00
cbor esp_ipc: fix race condition in ipc task 2021-09-15 22:57:02 +03:00
coap coap: move mbedTLS config options from component to examples 2020-05-19 17:23:29 +05:30
console vfs: support vfs uart set line endings with specified uart number (release/v4.2) 2020-08-14 16:01:14 +08:00
cxx [C++]: wrapper functions around unwind code 2021-06-01 15:09:46 +08:00
driver uart: support alloc driver object in SRAM 2021-09-22 12:01:04 +08:00
efuse Merge branch 'bugfix/fix_esp32h2_efuse_get_ext_mac_v4.2' into 'release/v4.2' 2021-12-14 14:07:39 +00:00
esp32 fix esp32s2 fall into sleep forever when deep-sleep time is set to 0(backport v4.2) 2021-07-14 17:46:20 +08:00
esp32s2 Merge branch 'bugfix/fix_esp32s2_deep_sleep_timer_wake_up_fail_backport_v4.2' into 'release/v4.2' 2021-07-26 07:39:16 +00:00
esp_adc_cal [cxx]: fixed extern "C" declarations 2021-03-15 18:42:19 +08:00
esp_common esp32c3: Adds support BROWNOUT reset (v4.2) 2021-09-23 23:16:16 +08:00
esp_eth Increased LAN8720 ETH-PHY reset assertion time (IDFGH-6018) 2021-11-10 21:59:00 +01:00
esp_event esp_wifi: Add beacon timeout event 2021-12-03 15:37:06 +08:00
esp_gdbstub gdbstub: fix thread list generation 2021-06-18 16:02:10 +02:00
esp_hid esp_hid: fix memory leak if getting dev reports fails 2020-05-07 12:56:54 +00:00
esp_http_client esp_http_client: Fix HEAD request will affect the all next HTTP requests unless we close the HTTP request 2021-10-29 10:20:04 +08:00
esp_http_server esp_http_server: Fix ws server handle length over 1440(MTU) messages incorrectly. 2021-08-31 14:23:10 +08:00
esp_https_ota esp_http_client: Fixed handling of EAGAIN return 2021-09-20 17:49:11 +05:30
esp_https_server esp_https_server: fix HTTPD_SSL_CONFIG_DEFAULT 2020-03-27 23:12:57 +08:00
esp_ipc esp_ipc: fix race condition in ipc task 2021-09-15 22:57:02 +03:00
esp_local_ctrl Added support for security1 in local control 2021-12-09 15:26:14 +08:00
esp_netif esp_netif: Fix dhcps state transitions 2021-07-26 09:33:32 +08:00
esp_ringbuf ringbuf: Fix bug where comparision between a signed and unsigned operand resulted in incorrect free size for no-split/allow-split buffers 2021-12-27 15:14:17 +08:00
esp_rom fix bootloader build with rom flash driver 2021-11-08 14:14:39 +08:00
esp_serial_slave_link essl: new component to communicate with esp serial slave devices 2019-12-03 22:58:41 +08:00
esp_system coredump: Fixes ESP-specific panic reasons handling 2021-11-23 13:06:03 +03:00
esp_timer Merge branch 'refactor/esp_ipc' into 'master' 2020-05-25 15:03:04 +08:00
esp_websocket_client Add options for esp_http_client and esp_websocket_client to support keepalive 2021-01-26 14:09:01 +08:00
esp_wifi allow for minimal scope of wifi_init_config_t 2021-12-14 19:44:31 +08:00
esp-tls Fix esp_mbedtls_write API 2021-09-16 09:02:34 +05:30
espcoredump coredump: Fixes core dump private header inclusion guard 2021-11-23 13:06:18 +03:00
esptool_py esp_ipc: fix race condition in ipc task 2021-09-15 22:57:02 +03:00
expat expat: Update library from 2.2.9 to 2.4.1 2021-09-06 19:59:55 +08:00
fatfs fatfs: fix SPIRAM allocation not used due to Kconfig option name error 2021-07-26 09:40:39 +08:00
freemodbus freemodbus: increase max priority of modbus tasks 2021-07-26 08:46:25 +08:00
freertos Merge branch 'ci/change_perf_key_v4.2' into 'release/v4.2' 2021-08-16 06:13:21 +00:00
heap components: fix ldgen check errors 2021-06-17 12:36:34 +10:00
idf_test Update components/idf_test/include/esp32/idf_performance_target.h 2021-06-29 16:42:11 +08:00
jsmn jsmn: define macros in build system 2019-11-29 18:05:24 +08:00
json cJSON: Update submodule to latest release. 2021-09-06 07:42:32 +05:30
libsodium libsodium: fix source directory names to address build issues with Make 2021-08-17 11:10:34 +05:30
log log: correct timestamp formatting to unsigned integer type 2021-03-04 11:54:30 +05:30
lwip Merge branch 'bugfix/lwip_config_dhcp_client_id_v4.2' into 'release/v4.2' 2021-12-16 06:43:41 +00:00
mbedtls mbedtls: upgrade to release v2.16.12 2021-12-21 14:03:30 +05:30
mdns Merge branch 'bugfix/mdns_one_shot_multicast_v4.2' into 'release/v4.2' 2021-06-24 18:48:23 +00:00
mqtt esp_ipc: fix race condition in ipc task 2021-09-15 22:57:02 +03:00
newlib newlib: Fix a case in FD_ISSET macro when n==-1 2021-07-15 11:18:45 +08:00
nghttp nghttp2: upgrade to v1.41.0 release 2021-09-24 17:47:02 +05:30
nvs_flash [doc]: NVS documentation updates 2021-06-02 15:46:13 +08:00
openssl openssl: made verification mode conversion to mbetls modes more strict 2020-09-17 13:22:36 +02:00
partition_table partition_table: Fix case when a few similar to otadata partitions in the table 2021-10-26 16:48:25 +08:00
perfmon test: declare requirements and include dirs private 2020-03-23 10:58:50 +08:00
protobuf-c
protocomm Provisioning BLE: Add API to set manufacturer data in scan response 2021-07-14 18:25:20 +05:30
pthread pthread: Fix possible deadlock when using pthread_join() and Debug log level 2021-06-18 13:37:31 +08:00
sdmmc sdmmc: fix the probe issue that forbid sdspi working in highspeed mode 2020-07-28 12:36:03 +08:00
soc reduce bootup time when using usb-serial-jtag 2021-12-03 21:01:02 +08:00
spi_flash fix: app crash when OTA because the OTA task's stack is in rtc fast memory 2021-11-10 14:05:54 +08:00
spiffs tools: Redirect some warnings to stderr 2020-12-15 13:16:50 +07:00
tcp_transport tcp_transport: Fix some memory leak issues by coverity static analyzer. 2021-03-23 11:09:21 +05:30
tcpip_adapter Set default AP handlers in wifi_create_and_start_ap() v4.2 2020-09-15 14:54:46 +08:00
tinyusb esp_ipc: fix race condition in ipc task 2021-09-15 22:57:02 +03:00
ulp ulp: Fix bug where ULP linker script not regenerated for new config 2021-05-21 10:56:05 +10:00
unity global: rename esp32s2beta to esp32s2 2020-01-22 12:14:38 +08:00
vfs Fix memory leak on error path in register_select 2021-07-26 14:43:21 +08:00
wear_levelling test: declare requirements and include dirs private 2020-03-23 10:58:50 +08:00
wifi_provisioning provisioning: fix wifi warning in wifi_prov_mgr application 2021-08-18 18:34:46 +08:00
wpa_supplicant Merge branch 'bugfix/wpa_supplicant_logs_release_v4.2' into 'release/v4.2' 2021-12-21 03:36:28 +00:00
xtensa [system]: Made longjmp save for context switch 2021-07-21 09:48:48 +08:00