File tree Expand file tree Collapse file tree 3 files changed +10
-13
lines changed
features/FEATURE_COMMON_PAL/mbed-coap Expand file tree Collapse file tree 3 files changed +10
-13
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
3
- ## [ v4.0.0] ( https://github.com/ARMmbed/mbed-coap/releases/tag/v4.0.0 )
3
+ ## [ v4.0.0] ( https://github.com/ARMmbed/mbed-coap/releases/tag/v4.0.2 )
4
4
5
5
** New feature**
6
6
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " mbed-coap" ,
3
- "version" : " 4.0.0 " ,
3
+ "version" : " 4.0.2 " ,
4
4
"description" : " COAP library" ,
5
5
"keywords" : [
6
6
" coap" ,
7
7
" nanostack"
8
8
],
9
9
"license" : " Apache-2.0" ,
10
- "extraIncludes" : [
11
- " source/include"
12
- ],
13
10
"dependencies" : {
14
11
"nanostack-libservice" : " ^3.0.0" ,
15
12
"mbed-trace" : " >=0.2.0,<2.0.0" ,
21
18
"url" : " https://github.com/ARMmbed/mbed-coap.git" ,
22
19
"type" : " git"
23
20
},
24
- "homepage" : " https://github.com/ARMmbed/mbed-coap"
21
+ "homepage" : " https://github.com/ARMmbed/mbed-coap" ,
22
+ "extraIncludes" : [
23
+ " mbed-coap" ,
24
+ " source/include"
25
+ ]
25
26
}
Original file line number Diff line number Diff line change @@ -655,7 +655,7 @@ static int16_t sn_coap_parser_options_count_needed_memory_multiple_option(uint8_
655
655
uint16_t i = 1 ;
656
656
657
657
/* Loop all Uri-Query options */
658
- while (i < packet_left_len ) {
658
+ while (i <= packet_left_len ) {
659
659
if (option == COAP_OPTION_LOCATION_PATH && option_number_len > 255 ) {
660
660
return -1 ;
661
661
}
@@ -677,14 +677,10 @@ static int16_t sn_coap_parser_options_count_needed_memory_multiple_option(uint8_
677
677
678
678
i += option_number_len ;
679
679
ret_value += option_number_len + 1 ; /* + 1 is for separator */
680
- if (ret_value >= packet_left_len )
681
- break ;
682
-
683
- if (ret_value >= packet_left_len )
684
- break ;
685
680
686
- if ( i == packet_left_len )
681
+ if ( i >= packet_left_len ) {
687
682
break ;
683
+ }
688
684
689
685
if ((* (packet_data_ptr + i ) >> COAP_OPTIONS_OPTION_NUMBER_SHIFT ) != 0 ) {
690
686
return (ret_value - 1 ); /* -1 because last Part path does not include separator */
You can’t perform that action at this time.
0 commit comments