The official git repository for OSD-Contiki, the open source OS for the Internet of Things
Find a 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 Update code-style.c 2016-12-03 12:21:04 +01:00
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 Add binary files file extension 2015-10-22 16:19:39 +02:00
.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 Updated CONTRIBUTING.md to reflect Contiki's new merging policy 2015-08-18 22:06:56 +02:00
LICENSE Removed the explicit year 2012 to make it more generic 2012-10-25 23:08:54 +02:00
Makefile.include Extended SOURCEDIRS variable with EXTRALDIRS variable in Makefile.include 2016-02-15 09:37:38 +01:00
README-BUILDING.md Rename to md 2013-03-26 23:15:37 +01:00
README-EXAMPLES.md Several minor consistency improvements. 2013-07-31 00:55:31 +02:00
README.md Travis icon in README.md: show build status of the current master rather than latest build status (can be any pull request) 2015-08-19 09:21:38 +02:00

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