a30364189a
When a connection is aborted by the HTTP server while it's still being processed it is possible to hit a null pointer dereference issue by jumping back to a protothread (outputpt) after its httpd_state has been freed. This can be triggered by sending a POST to any form in the CC26xx web demo server using Firefox. This patch prevents that by zeroing out httpd_state structs before freeing them, thus also clearing the httpd_state->outputpt field. Tested using Firefox 55.0a1 on a CC2650 LaunchPad. |
||
---|---|---|
.. | ||
cc26xx-web-demo | ||
very-sleepy-demo | ||
cc26xx-demo.c | ||
Makefile | ||
Makefile.target | ||
project-conf.h | ||
README.md |
CC26xx Demo
This example demonstrates basic functionality for the two supported CC26xx boards. More specifically, the example demonstrates:
- How to take sensor readings
- How to use buttons and the reed relay (triggered by holding a magnet near S3 on the SensorTag).
- How to send out BLE advertisements, if the chip has BLE capability. The device will periodically send out BLE beacons with the platform name as payload. Those beacons/BLE ADV packets can be captured with any BLE-capable device. Two such applications for iOS are the TI Multitool and the TI Sensortag app. They can be found in the Apple App Store. If you have a BLE-capable Mac, you can also use LightBlue for OS X.