rtos/tinyara.git
6 years agoMerge pull request #866 from pillip8282/fix_wpa2_krack master 1.1_Public_Release
Juitem JoonWoo Kim [Fri, 20 Oct 2017 00:31:07 +0000 (09:31 +0900)]
Merge pull request #866 from pillip8282/fix_wpa2_krack

wifi/wpa_suuplicant: patch for wpa_supplicant security issue called KRACK

6 years agowifi/wpa_suuplicant: patch for wpa_supplicant security issue called KRACK
pillip8282 [Thu, 19 Oct 2017 09:47:54 +0000 (18:47 +0900)]
wifi/wpa_suuplicant: patch for wpa_supplicant security issue called KRACK

It applies KRACK patch set from Tizen patch.
It contains KRACK patch and 2.6 version up patch for adapting a KRACK patch

6 years agoMerge pull request #865 from jeongarmy/add_license
sunghan-chang [Thu, 19 Oct 2017 07:53:44 +0000 (16:53 +0900)]
Merge pull request #865 from jeongarmy/add_license

libc/netdb: add missing original copyright and license in lib_getaddrinfo.c

6 years agoMerge pull request #860 from pillip8282/fix_mdns2
davidfather [Thu, 19 Oct 2017 07:27:01 +0000 (16:27 +0900)]
Merge pull request #860 from pillip8282/fix_mdns2

net/mdns: fix that mdns refers invalid memory

6 years agoMerge pull request #857 from pillip8282/fix_xmlrpc_negative
davidfather [Thu, 19 Oct 2017 07:26:07 +0000 (16:26 +0900)]
Merge pull request #857 from pillip8282/fix_xmlrpc_negative

external:xmlrpc fix xmlrpc refer invalid memory area

6 years agolibc/netdb: add missing original copyright and license in lib_getaddrinfo.c
Ahreum Jeong [Thu, 19 Oct 2017 07:24:33 +0000 (16:24 +0900)]
libc/netdb: add missing original copyright and license in lib_getaddrinfo.c

This file includes some codes got from open source under the terms of BSD license.
So copyright and license in original file should be kept to fulfill BSD license oligations.

6 years agoMerge pull request #856 from pillip8282/fix_dtls
davidfather [Thu, 19 Oct 2017 07:23:39 +0000 (16:23 +0900)]
Merge pull request #856 from pillip8282/fix_dtls

net:tinydtls fix denial of service in tinydtls

6 years agoMerge pull request #854 from an4967/fix_st_things_bug
pillip8282 [Thu, 19 Oct 2017 06:35:23 +0000 (15:35 +0900)]
Merge pull request #854 from an4967/fix_st_things_bug

framework/st_things: fix ssid format

6 years agoMerge pull request #861 from dr-venkman/fix_coap_parse_int
pillip8282 [Thu, 19 Oct 2017 05:58:28 +0000 (14:58 +0900)]
Merge pull request #861 from dr-venkman/fix_coap_parse_int

Fix coap parsing for wakaama in coap_parse_message and coap_merge_multi_option functions

6 years agoMerge branch 'master' into fix_st_things_bug
an4967 [Thu, 19 Oct 2017 05:58:17 +0000 (14:58 +0900)]
Merge branch 'master' into fix_st_things_bug

6 years agoMerge pull request #843 from heejin-kim/hj_25
sunghan-chang [Thu, 19 Oct 2017 05:16:30 +0000 (14:16 +0900)]
Merge pull request #843 from heejin-kim/hj_25

Revise doxygen comment to remove unused st_things APIs

6 years agoMerge pull request #849 from heejin-kim/hj_18
sunghan-chang [Thu, 19 Oct 2017 05:12:53 +0000 (14:12 +0900)]
Merge pull request #849 from heejin-kim/hj_18

doxygen : Add header file info for network libs APIs

6 years agoMerge pull request #863 from an4967/add_null_check
sunghan-chang [Thu, 19 Oct 2017 05:00:57 +0000 (14:00 +0900)]
Merge pull request #863 from an4967/add_null_check

 framework/st_things: apply coding style and check null value

6 years agoMerge pull request #862 from jeongarmy/add_license
sunghan-chang [Thu, 19 Oct 2017 04:59:00 +0000 (13:59 +0900)]
Merge pull request #862 from jeongarmy/add_license

license : add missing copyright and license text

6 years agodoxygen : Add header file info for network libs APIs
Heejin Kim [Tue, 17 Oct 2017 08:00:22 +0000 (17:00 +0900)]
doxygen : Add header file info for network libs APIs

You can see which path should be included to use network libs APIs.

6 years agoframework/st_things: apply tizenrt coding rule in st_things
Daesung [Thu, 19 Oct 2017 02:24:31 +0000 (11:24 +0900)]
framework/st_things: apply tizenrt coding rule in st_things

- apply tizenrt coding rule.

6 years agolicense : Add missing original copyright and license
Ahreum Jeong [Tue, 17 Oct 2017 09:59:19 +0000 (18:59 +0900)]
license : Add missing original copyright and license

We should follow obligation of each license if we use whole or parts of other open source
To fulfill obligations, original copyright and license should be kept in each file.

. NUTTX(BSD)
   - mkfsdata.pl tash_init.c wifi_net.c fs_procfscm.c, fs_procfsversion.c, pm_procfs.c

. Node.js(MIT)
   - buffer.js dgram.js

. lwip(BSD)
   - COPYING : copied from COPYING in lwip

6 years agoMerge pull request #859 from HONGCHAEHEE/1018-web
pillip8282 [Thu, 19 Oct 2017 04:13:07 +0000 (13:13 +0900)]
Merge pull request #859 from HONGCHAEHEE/1018-web

Add error handling functions in webserver&client

6 years agoframework/st_things: add null check statement
Daesung [Thu, 19 Oct 2017 02:22:57 +0000 (11:22 +0900)]
framework/st_things: add null check statement

- check the return value of cJSON whether it is null or not

6 years agoFix coap parsing for wakaama in coap_parse_int function
venkat.iyer [Wed, 18 Oct 2017 12:46:35 +0000 (21:46 +0900)]
Fix coap parsing for wakaama in coap_parse_int function

Coap parsing needs to check for buffer boundary violation, especially when parsing option bytes.
This commit enforces a strong check in the coap_parse_message function to mitigate such potential DoS attacks.

6 years agolicense : add missing our copyright and license
Ahreum Jeong [Tue, 17 Oct 2017 09:57:11 +0000 (18:57 +0900)]
license : add missing our copyright and license

. add missing our copyright and license to file : ftl.c

6 years agonet/mdns: fix that mdns refers invalid memory
pillip8282 [Wed, 18 Oct 2017 11:14:39 +0000 (20:14 +0900)]
net/mdns: fix that mdns refers invalid memory

it is more safe to check p is within valid memory before access to memory

6 years agoMerge pull request #855 from jeongarmy/fix_arastorage_security_issue
Taejun-Kwon [Wed, 18 Oct 2017 11:06:27 +0000 (20:06 +0900)]
Merge pull request #855 from jeongarmy/fix_arastorage_security_issue

arastorage : add change return type of some functions and missing checking error case

6 years agoAdd error handling functions in webserver&client
chaehee.hong [Wed, 18 Oct 2017 10:49:21 +0000 (19:49 +0900)]
Add error handling functions in webserver&client

- Add error handling codes in webserver and webclient if http_parse_massage function receives an error return.

6 years agoMerge pull request #858 from Samsung/revert-851-1018-web
sunghan-chang [Wed, 18 Oct 2017 10:38:11 +0000 (19:38 +0900)]
Merge pull request #858 from Samsung/revert-851-1018-web

Revert "Add an error handling code and an initialization function in webserver&client"

6 years agoRevert "Add an error handling code and an initialization function in webserver&client"
pillip8282 [Wed, 18 Oct 2017 10:36:47 +0000 (19:36 +0900)]
Revert "Add an error handling code and an initialization function in webserver&client"

6 years agoarastorage/lvm : change return type of some functions in lvm to check result of them
Ahreum Jeong [Wed, 18 Oct 2017 08:26:59 +0000 (17:26 +0900)]
arastorage/lvm : change return type of some functions in lvm to check result of them

1. change return type from void to lvm_result_t of some functions
   because we need to check error case and execute next operation according to returned result in upper function

2. add missing checking error case
   . Description
      Functions lvm_set_op, lvm_set_relation, lvm_set_operand try to memcpy input data (part of AQL files) into fixed size buffer lvm_instance_t ->code.
      Allocated buffer can fit only DB_VM_BYTECODE_SIZE (128) bytes and the check is missing.
   . Mitigation
      The size of input string should be limited to DB_VM_BYTECODE_SIZE.
Allocated buffer can fit only DB_VM_BYTECODE_SIZE (128) bytes and the check is missing.

6 years agoarastorage/lexer : add checking the length of input data before allocating it to...
Ahreum Jeong [Wed, 18 Oct 2017 08:26:27 +0000 (17:26 +0900)]
arastorage/lexer : add checking the length of input data before allocating it to buffer with fixed si$

. Description
  - next_string
     Function next_string that provides next lexem during AQL analysis tries to memcpy input data (part of AQL files) into fixed size buffer.
     Allocated buffer can fit only DB_MAX_ELEMENT_SIZE (32) bytes and the check is missing.
  - next_token
     Function next_token that provides next token during AQL analysis tries to memcpy input data (part of AQL files) into fixed size buffer.
     Allocated buffer can fit only DB_MAX_ELEMENT_SIZE (32) bytes and the check is missing.

. Mitigation
   The size of input string should be limited to DB_MAX_ELEMENT_SIZE.

6 years agoMerge pull request #851 from HONGCHAEHEE/1018-web
pillip8282 [Wed, 18 Oct 2017 10:03:16 +0000 (19:03 +0900)]
Merge pull request #851 from HONGCHAEHEE/1018-web

Add an error handling code and an initialization function in webserver&client

6 years agoexternal:xmlrpc fix xmlrpc refer invalid memory area
pillip8282 [Wed, 18 Oct 2017 09:34:28 +0000 (18:34 +0900)]
external:xmlrpc fix xmlrpc refer invalid memory area

if member in parsebuf_s has negative value then xmlrpc refers buf with index -1
so I add compare logic in xmlrpc_getelement()

6 years agoMerge branch 'master' into fix_dtls
pillip8282 [Wed, 18 Oct 2017 09:18:21 +0000 (18:18 +0900)]
Merge branch 'master' into fix_dtls

6 years agonet:tinydtls fix denial of service in tinydtls
pillip8282 [Wed, 18 Oct 2017 08:39:59 +0000 (17:39 +0900)]
net:tinydtls fix denial of service in tinydtls

tinydtls library allows remote attackers to cause a denial of service (DTLS peer crash) by sending
a "Change cipher spec" packet without pre-handshake.
so peer and peer->handparams should be checked.
you can see the detailed at https://github.com/k1rh4/CVE/blob/master/tinydtls

6 years agoframework/st_things: fix ssid format
Daesung [Wed, 18 Oct 2017 08:03:30 +0000 (17:03 +0900)]
framework/st_things: fix ssid format

- artik053 supports 32 bytes for ssid.
- limit the length of ssid.

6 years agoMerge pull request #852 from sunghan-chang/csvparser
btheosam [Wed, 18 Oct 2017 07:13:29 +0000 (16:13 +0900)]
Merge pull request #852 from sunghan-chang/csvparser

tools/csvparser: add a limitation of parsing parameters from syscall csv

6 years agotools/csvparser: add a limitation of parsing parameters from syscall csv
sunghan [Wed, 18 Oct 2017 06:47:34 +0000 (15:47 +0900)]
tools/csvparser: add a limitation of parsing parameters from syscall csv

The g_parm variable which it is a buffer to treat system call parameters
has a maximum value, 16 as a parameter field. But in parse_csvline function,
a maximum value is not checking so that it can cause memory corruption.
Because of above reason, it should have a checking code for maximum.
But, parser can't make a decision whether it is a valid or not. Let's exit
with error.

6 years agoAdd an error handling code and an initialization function in webserver&client
chaehee.hong [Wed, 18 Oct 2017 04:13:56 +0000 (13:13 +0900)]
Add an error handling code and an initialization function in webserver&client

- Initialization of buffers is added in webserver not to be filled with the previous data.
- Missing an error handling function is added in webserver.
- Missing error handling functions are added in webclient.

6 years agoMerge pull request #845 from an4967/add_user_data
pillip8282 [Wed, 18 Oct 2017 06:08:44 +0000 (15:08 +0900)]
Merge pull request #845 from an4967/add_user_data

examples/st_things: add user data in response msg

6 years agoexamples/st_things: add user data in response msg
Daesung [Tue, 17 Oct 2017 05:03:54 +0000 (14:03 +0900)]
examples/st_things: add user data in response msg

- add the usage of 2 APIs(st_things_create_representation_inst, st_things_destroy_representation_inst)
- show how to deliver user data to sever

6 years agoRevise doxygen comment to remove unused st_things APIs
Heejin Kim [Tue, 17 Oct 2017 05:15:16 +0000 (14:15 +0900)]
Revise doxygen comment to remove unused st_things APIs

Remove two st_things APIs in doxygen. It may be necessary to implement in a future, I only removed in doxygen list.
1. st_things_register_pin_handling_cb : Among the boards supported by TizenRT, there is no board providing pin based comfirmation. So TizenRT does not support this API.
2. st_things_deinitialize : It has not been implemented.

6 years agoMerge pull request #847 from jeongarmy/fix_pm_comment
sunghan-chang [Tue, 17 Oct 2017 13:12:03 +0000 (22:12 +0900)]
Merge pull request #847 from jeongarmy/fix_pm_comment

os/pm : fix wrong file path in comment

6 years agoMerge pull request #848 from jeongarmy/modify_doxygen
sunghan-chang [Tue, 17 Oct 2017 13:11:30 +0000 (22:11 +0900)]
Merge pull request #848 from jeongarmy/modify_doxygen

doxygen : add include path, missing brief, parameters and return for fs APIs in include/sys

6 years agoMerge pull request #842 from pillip8282/fix_snmp_assert
davidfather [Tue, 17 Oct 2017 10:42:28 +0000 (19:42 +0900)]
Merge pull request #842 from pillip8282/fix_snmp_assert

net:lwip fix snmp issues

6 years agoMerge pull request #840 from pillip8282/lwip_fix_tcp_spoofing
davidfather [Tue, 17 Oct 2017 10:42:00 +0000 (19:42 +0900)]
Merge pull request #840 from pillip8282/lwip_fix_tcp_spoofing

net:lwip fix tcp spoofing attack at lwIP

6 years agoMerge pull request #836 from HONGCHAEHEE/dm
pillip8282 [Tue, 17 Oct 2017 10:17:53 +0000 (19:17 +0900)]
Merge pull request #836 from HONGCHAEHEE/dm

Edit makefiles of framework and tc for the path inclusion of DM API header

6 years agodoxygen : add include path, missing brief, parameters and return to fs APIs in includ...
Ahreum Jeong [Tue, 17 Oct 2017 07:46:38 +0000 (16:46 +0900)]
doxygen : add include path, missing brief, parameters and return to fs APIs in include/sys

. Add include path
  - If not, user can't know which header file should be included to use these APIs
. Add parameter name
  - each parameter name is needed for param[in/out] to follow doxygen rule
. Add missing brief to POSIX APIs and return

6 years agoMerge pull request #819 from pillip8282/cjson_update
sunghan-chang [Tue, 17 Oct 2017 09:52:58 +0000 (18:52 +0900)]
Merge pull request #819 from pillip8282/cjson_update

external:cjson update cJSON to the version 1.5.7 released Jun 29 2017

6 years agonet:lwip fix tcp spoofing attack at lwIP
kang [Tue, 17 Oct 2017 02:23:38 +0000 (11:23 +0900)]
net:lwip fix tcp spoofing attack at lwIP

Ignore TCP_RST if lwIP stack recevie it with invalid seqnum
You can check the detailed at https://www.cvedetails.com/cve/CVE-2004-0230/

6 years agoMerge pull request #846 from jeongchanKim/missed_doxy
sunghan-chang [Tue, 17 Oct 2017 09:41:37 +0000 (18:41 +0900)]
Merge pull request #846 from jeongchanKim/missed_doxy

doxygen : Add include path in stdio.h

6 years agonet:lwip fix SNMP assert when config value is not match to the received.
kang [Tue, 17 Oct 2017 04:28:51 +0000 (13:28 +0900)]
net:lwip fix SNMP assert when config value is not match to the received.

Developer in remote device is unable to communicate if configuration is not match to a input packet
You can see detail at https://savannah.nongnu.org/bugs/index.php?46128

6 years agoMerge pull request #850 from HONGCHAEHEE/http-header
pillip8282 [Tue, 17 Oct 2017 09:34:49 +0000 (18:34 +0900)]
Merge pull request #850 from HONGCHAEHEE/http-header

Fix a http header parsing function in webserver

6 years agoos/pm : fix wrong file path in comment
Ahreum Jeong [Tue, 17 Oct 2017 07:07:20 +0000 (16:07 +0900)]
os/pm : fix wrong file path in comment

Fix wrong file path in comment.
these files exist in os/pm

6 years agoFix a http header parsing function in webserver
chaehee.hong [Tue, 17 Oct 2017 08:26:45 +0000 (17:26 +0900)]
Fix a http header parsing function in webserver

- Remove the code for checking the length of the http header. The whole unseparated http header can be longer than the max key length.
- Re-fix of commit eda61d6f7b0b1ed4a17a62206ddf94d6fc8069d1

6 years agoMerge pull request #802 from JeonginKim/sec3
pillip8282 [Tue, 17 Oct 2017 08:53:31 +0000 (17:53 +0900)]
Merge pull request #802 from JeonginKim/sec3

Fix buffer overflow in FTP client

6 years agoMerge pull request #815 from sinzah/master
pillip8282 [Tue, 17 Oct 2017 07:28:21 +0000 (16:28 +0900)]
Merge pull request #815 from sinzah/master

wpa_supplicant : security vulnerability patch (http://w1.fi/security/2016-1/)

6 years agoMerge pull request #803 from dr-venkman/fix_coap_parsing
pillip8282 [Tue, 17 Oct 2017 07:08:16 +0000 (16:08 +0900)]
Merge pull request #803 from dr-venkman/fix_coap_parsing

Fix er-coap parsing in wakaama to handle heap buffer overflows

6 years agodoxygen : Add include path in stdio.h
jc_.kim [Tue, 17 Oct 2017 06:48:11 +0000 (15:48 +0900)]
doxygen : Add include path in stdio.h

if not, we cannot know which header we should include for using 'puts' api

6 years agoMerge pull request #812 from dr-venkman/fix_dos_issues_wakaama
pillip8282 [Tue, 17 Oct 2017 06:43:56 +0000 (15:43 +0900)]
Merge pull request #812 from dr-venkman/fix_dos_issues_wakaama

Merge security-related fixes from eclipse wakaama Github to TizenRT

6 years agoMerge pull request #827 from HONGCHAEHEE/doc
sunghan-chang [Tue, 17 Oct 2017 06:19:52 +0000 (15:19 +0900)]
Merge pull request #827 from HONGCHAEHEE/doc

doxygen : Add include path and missing param name in framework

6 years agodoxygen : tidy up framework/tinyalsa and st_things
Dongeon Kim [Tue, 17 Oct 2017 06:18:16 +0000 (15:18 +0900)]
doxygen : tidy up framework/tinyalsa and st_things

* Add header include path for framework/tinyalsa and framework/st_things on doxygen comments
 - if not, we cannot know which header we should include for using that api

* modify indentations

6 years agoMerge pull request #841 from jeongchanKim/doxy_include
sunghan-chang [Tue, 17 Oct 2017 06:09:45 +0000 (15:09 +0900)]
Merge pull request #841 from jeongchanKim/doxy_include

doxygen : Add include path, brief desc and missing param name and fix…

6 years agoMerge pull request #844 from heejin-kim/hj_18
sunghan-chang [Tue, 17 Oct 2017 06:07:51 +0000 (15:07 +0900)]
Merge pull request #844 from heejin-kim/hj_18

Add header file info in iotbus API's doxygen comment

6 years agoAdd header file info in iotbus API's doxygen comment
Heejin Kim [Tue, 17 Oct 2017 05:44:37 +0000 (14:44 +0900)]
Add header file info in iotbus API's doxygen comment

You can see which path should be included to use iotbus APIs.

6 years agoMerge pull request #811 from pillip8282/fix_netlib
davidfather [Tue, 17 Oct 2017 04:57:18 +0000 (13:57 +0900)]
Merge pull request #811 from pillip8282/fix_netlib

net:netlib fix vulerability while parsing malicious URLs

6 years agoMerge pull request #810 from pillip8282/fix_mdns
davidfather [Tue, 17 Oct 2017 04:56:12 +0000 (13:56 +0900)]
Merge pull request #810 from pillip8282/fix_mdns

protocol:mdns fix vulnerability at mdns

6 years agonet:lwip fix build snmp build error
kang [Tue, 17 Oct 2017 04:27:25 +0000 (13:27 +0900)]
net:lwip fix build snmp build error

Add <net/lwip/debug.h> in snmp to prevent a build error

6 years agodoxygen : Add include path, brief desc and missing param name and fix wrong desc...
jc_.kim [Mon, 16 Oct 2017 01:08:12 +0000 (10:08 +0900)]
doxygen : Add include path, brief desc and missing param name and fix wrong desc in os/include

1. Add include path for each apis
  - if not, we cannot know which header we should include for using that api
2. Add missing param name for each apis
  - argument name is needed after param[in] or param[out]
3. Add brief description for POSIX APIs
4. Fix wrong desc
  - some apis are not POSIX apis, but marked POSIX. so fix.

assert.h, crc16.h, crc32.h, crc8.h, debug.h, dirent.h, errno.h, fcntl.h, fixedmath.h, inttypes.h,
libgen.h, mqueue.h, pthread.h, queue.h, sched.h, semaphore.h, signal.h, spawn.h, stdio.h, stdlib.h,
string.h, syslog.h, termios.h, time.h, unistd.h
sys/prctl.h, sys/stat.h, sys/time.h, sys/wait.h, sys/ioctl.h
tinyara/clock.h, tinyara/math.h, tinyara/regex.h, tinyara/sched.h, tinyara/spawn.h, tinyara/streams.h,
tinyara/time.h, tinyara/ttrace.h

6 years agoMerge pull request #839 from jeongchanKim/mqtt_codingrule
sunghan-chang [Tue, 17 Oct 2017 03:43:12 +0000 (12:43 +0900)]
Merge pull request #839 from jeongchanKim/mqtt_codingrule

testcase/mqtt_itc : fix coding rule error - space is needed before '='

6 years agoprotocol:mdns fix vulnerability at mdns
kang [Thu, 12 Oct 2017 04:18:16 +0000 (13:18 +0900)]
protocol:mdns fix vulnerability at mdns

1) fix overflow when mdns is parsing the packet
2) checking cycle reference when it is parsing the packet
    https://www.kb.cert.org/vuls/id/23495
3) adding a buffer overflow check when it is converting a name label

6 years agotestcase/mqtt_itc : fix coding rule error - space is needed before '='
jc_.kim [Tue, 17 Oct 2017 01:20:50 +0000 (10:20 +0900)]
testcase/mqtt_itc : fix coding rule error - space is needed before '='

[SPC_M_OPR] spaces required around that '=' (ctx:VxW)

6 years agoMerge branch 'master' of https://github.com/Samsung/TizenRT into dm
chaehee.hong [Mon, 16 Oct 2017 23:57:31 +0000 (08:57 +0900)]
Merge branch 'master' of https://github.com/Samsung/TizenRT into dm

6 years agoMerge pull request #832 from an4967/bug_fix_iotbus_pwm
sunghan-chang [Mon, 16 Oct 2017 10:16:17 +0000 (19:16 +0900)]
Merge pull request #832 from an4967/bug_fix_iotbus_pwm

iotbus: bug fix in pwm

6 years agoEdit makefiles of framework and tc for the path inclusion of DM API header
chaehee.hong [Mon, 16 Oct 2017 09:42:30 +0000 (18:42 +0900)]
Edit makefiles of framework and tc for the path inclusion of DM API header

- Edit the compile option not to find the header file directory and use the original one as the other framework modules do.

6 years agonet:netlib fix vulerability while parsing malicious URLs
kang [Fri, 13 Oct 2017 00:42:58 +0000 (09:42 +0900)]
net:netlib fix vulerability while parsing malicious URLs

netlib_parsehttpurl() should be returned when error is detected

6 years agoMerge pull request #830 from an4967/apply_coding_rule
sunghan-chang [Mon, 16 Oct 2017 08:43:33 +0000 (17:43 +0900)]
Merge pull request #830 from an4967/apply_coding_rule

st_things: apply tizenrt coding rule

6 years agodoxygen : Add include path and missing param name for mqtt APIs
chaehee.hong [Mon, 16 Oct 2017 08:07:38 +0000 (17:07 +0900)]
doxygen : Add include path and missing param name for mqtt APIs

1.Add include path for each api
•if not, we cannot know which header we should include for using that api
2.Add missing param name for each api
•argument name is needed after param[in] or param[out]

6 years agodoxygen : Add include path and missing param names for DM APIs
chaehee.hong [Mon, 16 Oct 2017 08:05:26 +0000 (17:05 +0900)]
doxygen : Add include path and missing param names for DM APIs

1.Add include path for each api
•if not, we cannot know which header we should include for using that api
2.Add missing param name for each api
•argument name is needed after param[in] or param[out]

6 years agoMerge security-related fixes from eclipse wakaama Github to TizenRT
venkat.iyer [Fri, 13 Oct 2017 01:20:05 +0000 (10:20 +0900)]
Merge security-related fixes from eclipse wakaama Github to TizenRT

Wakaama in the version currently used by TizenRT (seems to be from around March/April) is vulnerable to several security issues, which were since fixed in the upstream version at https://github.com/eclipse/wakaama.

Reference to the original fixes are given below:

1. https://github.com/eclipse/wakaama/issues/319 (fix unknown, but likely https://github.com/eclipse/wakaama/commit/8037174913a5937c3bcb5ffe7838e4d3b867c53e)
2. https://github.com/eclipse/wakaama/issues/320
3. https://github.com/eclipse/wakaama/issues/268
4. https://github.com/eclipse/wakaama/issues/301

6 years agoFix buffer overflow in FTP client
JeonginKim [Thu, 12 Oct 2017 10:16:33 +0000 (19:16 +0900)]
Fix buffer overflow in FTP client

Function ftpc_dequote that converts quoted hexadecimal constants to binary values goes outside input data buffer -str pointer is checked, while str[1] and str[2] are read.
while parsing the server response end of string should be checked

6 years agoMerge pull request #833 from shivgarg/audio
Taejun-Kwon [Mon, 16 Oct 2017 07:29:37 +0000 (16:29 +0900)]
Merge pull request #833 from shivgarg/audio

framework/tinyalsa : Removing pcm_set_config as public API

6 years agoframework/tinyalsa : Removing pcm_set_config as public API
Shivam Garg [Mon, 16 Oct 2017 07:09:44 +0000 (16:09 +0900)]
framework/tinyalsa : Removing pcm_set_config as public API

pcm_set_config has been removed from tinyalsa include file. The tcs in utc and itc which tested pcm_set_config have been removed. Calls to pcm_set_config outside of tinyalsa have also been removed .pcm_set_config has been made a static function so that it can it is called only from tinyalsa.c file.

6 years agoiotbus: bug fix in pwm
Daesung [Mon, 16 Oct 2017 06:56:16 +0000 (15:56 +0900)]
iotbus: bug fix in pwm

- change type of divisor to get the result as float value.

6 years agost_things: apply tizenrt coding rule
Daesung [Mon, 16 Oct 2017 06:53:29 +0000 (15:53 +0900)]
st_things: apply tizenrt coding rule

- apply tizenrt coding rule

6 years agoMerge pull request #828 from shivgarg/audio
Taejun-Kwon [Mon, 16 Oct 2017 06:41:47 +0000 (15:41 +0900)]
Merge pull request #828 from shivgarg/audio

ta_tc/audio/{utc,itc} : Removing assert failure in audio TCs

6 years agoRemoving assert failure in audio TCs
Shivam Garg [Mon, 16 Oct 2017 06:16:49 +0000 (15:16 +0900)]
Removing assert failure in audio TCs

In audio utc/itc, readi positive tc gave an assert failure. The failure was due to the last pcm_readi call returning a negative value. The negative value was passed to write function which led to assert failure.
Now an if block has been added which checks the return value of pcm_readi before passing it to the write function.

6 years agoMerge pull request #820 from pillip8282/fix_xmlrpc
davidfather [Sat, 14 Oct 2017 06:58:23 +0000 (23:58 -0700)]
Merge pull request #820 from pillip8282/fix_xmlrpc

external:xmlrpc handle an exceptional case when invalid parameters ar…

6 years agoexternal:xmlrpc handle an exceptional case when invalid parameters are inserted
kang [Fri, 13 Oct 2017 06:01:49 +0000 (15:01 +0900)]
external:xmlrpc handle an exceptional case when invalid parameters are inserted

<> description:
Properly crafted xml request, can cause a situation in which the value of
the len field in the parsebuf_s structure will be less than the index field.
In this situation, when calling the xmlrpc_getelement from the xmlrpc_parseparams
function, the while loop will read the content of memory outside the buffer causing segmentation fault.

<> solution:
While calling xmlrpc_getelement function, check if index value inside parsebuf_s structure is less than len value.

6 years agoexternal:cjson update cJSON to the version 1.5.7 released Jun 29 2017
kang [Fri, 13 Oct 2017 05:44:02 +0000 (14:44 +0900)]
external:cjson update cJSON to the version 1.5.7 released Jun 29 2017

It will fix the below vulnerability issues existed at old version
https://www.talosintelligence.com/reports/TALOS-2016-0164/

6 years agoMerge pull request #822 from arvinmittal/fix_systemio_i2c_itc
sangwon03 [Fri, 13 Oct 2017 09:52:56 +0000 (18:52 +0900)]
Merge pull request #822 from arvinmittal/fix_systemio_i2c_itc

apps/examples/testcase/ta_tc/systemio/itc : fix itc_iotbus_i2c_write_read_p

6 years agoMerge pull request #804 from arvinmittal/fix_systemio_gpio_itc
sangwon03 [Fri, 13 Oct 2017 09:48:59 +0000 (18:48 +0900)]
Merge pull request #804 from arvinmittal/fix_systemio_gpio_itc

Fix systemio itc_gpio.c file, change gpio pin 12 to 41

6 years agoMerge pull request #726 from arvinmittal/fix_audio_fw_itc
Taejun-Kwon [Fri, 13 Oct 2017 09:46:14 +0000 (18:46 +0900)]
Merge pull request #726 from arvinmittal/fix_audio_fw_itc

apps/examples/testcase/ta_tc/audio/itc: Add ITCs for Audio_Framework Module

6 years agoMerge pull request #809 from thapav/fixAPIerrors
Juitem JoonWoo Kim [Fri, 13 Oct 2017 09:34:07 +0000 (18:34 +0900)]
Merge pull request #809 from thapav/fixAPIerrors

(libc/stdio): Fix wrong initialization in FS TC.

6 years agoapps/examples/testcase/ta_tc/audio/itc: Add ITCs for Audio_Framework
Arvin Mittal [Thu, 28 Sep 2017 12:38:08 +0000 (18:08 +0530)]
apps/examples/testcase/ta_tc/audio/itc: Add ITCs for Audio_Framework

Signed-off-by: Arvin Mittal <arvin.mittal@samsung.com>
6 years agoMerge pull request #814 from pillip8282/wifimanager_network_event_signal
davidfather [Fri, 13 Oct 2017 08:41:20 +0000 (01:41 -0700)]
Merge pull request #814 from pillip8282/wifimanager_network_event_signal

net:wifimanager fix sending net events to iotivity from wifi manager

6 years agoMerge pull request #725 from arvinmittal/fix_mqtt_itc
pillip8282 [Fri, 13 Oct 2017 08:20:40 +0000 (17:20 +0900)]
Merge pull request #725 from arvinmittal/fix_mqtt_itc

apps/examples/testcase/ta_tc/mqtt/itc : Add ITCs for MQTT Module

6 years agoMerge pull request #796 from an4967/mbedtls_hw_support
sunghan-chang [Fri, 13 Oct 2017 07:52:52 +0000 (16:52 +0900)]
Merge pull request #796 from an4967/mbedtls_hw_support

mbedtls: implement hardware support in mbedtls

6 years agoapps/examples/testcase/ta_tc/mqtt/itc: Add ITCs for MQTT
Arvin Mittal [Thu, 28 Sep 2017 12:05:54 +0000 (17:35 +0530)]
apps/examples/testcase/ta_tc/mqtt/itc: Add ITCs for MQTT

Signed-off-by: Arvin Mittal <arvin.mittal@samsung.com>
6 years agoMerge pull request #821 from jeongarmy/ttrace_config
Juitem JoonWoo Kim [Fri, 13 Oct 2017 07:37:07 +0000 (16:37 +0900)]
Merge pull request #821 from jeongarmy/ttrace_config

testcase/ttrace: add select condition for using ttrace in Kconfig

6 years agotestcase/ttrace: add select condition for using ttrace in Kconfig
Ahreum Jeong [Fri, 13 Oct 2017 06:56:24 +0000 (15:56 +0900)]
testcase/ttrace: add select condition for using ttrace in Kconfig

Add select config in Kconfig for testcase of T-trace.
Enable CONFIG_TTRACE when EXAMPLES_TESTCASE_TTRACE is turned on.

6 years agoMerge pull request #817 from HONGCHAEHEE/sdk
sangwon03 [Fri, 13 Oct 2017 07:15:19 +0000 (16:15 +0900)]
Merge pull request #817 from HONGCHAEHEE/sdk

Fix assert during things reset

6 years agoapps/examples/testcase/ta_tc/systemio/itc : fix itc_iotbus_i2c_write_read_p
Arvin Mittal [Fri, 13 Oct 2017 07:12:23 +0000 (12:42 +0530)]
apps/examples/testcase/ta_tc/systemio/itc : fix itc_iotbus_i2c_write_read_p

Signed-off-by: Arvin Mittal <arvin.mittal@samsung.com>