Contiki OS for 6502 based computers
Go to file
Alexandru-Ioan Pop f15b86158b Check broker IP conversion. Adjust state machine accordingly
The result of converting the IP address of the broker wasn't checked. As a result, the pointer was left uninitialised and the IPv6 address used for connecting was some random data. The function now returns an error. Before connect_to_broker is called, mqtt_register is executed, which memsets conn to 0, making its state 0 (MQTT_CONN_STATE_ERROR). In order to recover from this error state, the extra check was added in the MQTT_CLIENT_STATE_NEWCONFIG state.

This was discovered using [CodeSonar](https://www.grammatech.com/products/codesonar)
2017-03-31 17:33:29 +01:00
apps Check broker IP conversion. Adjust state machine accordingly 2017-03-31 17:33:29 +01:00
core Merge pull request #2103 from stringr9/bugfix/non-storing-drop-fix 2017-03-23 14:27:06 +01:00
cpu Merge pull request #2162 from posjodin/PR4 2017-03-31 12:24:55 +01:00
dev Merge pull request #1957 from alignan/pull/bme280-sensor 2016-12-10 18:37:21 +01:00
doc
examples Check broker IP conversion. Adjust state machine accordingly 2017-03-31 17:33:29 +01:00
lib Add support for the FAT file system 2016-11-27 22:50:44 +01:00
platform Minor spell fix in ANNOUNCE_BOOT 2017-03-30 15:24:19 +02:00
regression-tests Add a regression test for ringbufindex APIs 2017-03-09 16:47:24 +09:00
tools Added SLIP support to retro platforms. 2017-02-15 23:43:28 +01:00
.gitattributes
.gitignore Merge pull request #1469 from wbober/nrf52dk-pr 2016-06-01 23:11:39 +02:00
.gitmodules Add sensniff as a submodule 2016-12-04 18:43:17 +00:00
.travis.yml Enable TSCH regression testing 2017-03-09 16:47:54 +09:00
CONTRIBUTING.md
LICENSE
Makefile.include
README-BUILDING.md
README-EXAMPLES.md
README.md

The Contiki Operating System

Build Status

Contiki is an open source operating system that runs on tiny low-power microcontrollers and makes it possible to develop applications that make efficient use of the hardware while providing standardized low-power wireless communication for a range of hardware platforms.

Contiki is used in numerous commercial and non-commercial systems, such as city sound monitoring, street lights, networked electrical power meters, industrial monitoring, radiation monitoring, construction site monitoring, alarm systems, remote house monitoring, and so on.

For more information, see the Contiki website:

http://contiki-os.org