Oscbs 33 ci zephyr port (#375)

* zephyr: twister build fixes/patches

* zephyr: hack: suppress bvlc test (build failures)

Co-authored-by: Gregory Shue <gregory.shue@legrand.com>
This commit is contained in:
Greg Shue
2023-01-05 16:53:29 -08:00
committed by GitHub
parent c9efd0b84d
commit b8d345679b
9 changed files with 34 additions and 19 deletions
+1 -1
View File
@@ -1012,7 +1012,7 @@ bool octetstring_init_ascii_hex(
status = true;
} else {
while (ascii_hex[index] != 0) {
if (!isalnum(ascii_hex[index])) {
if (!isalnum((int)ascii_hex[index])) {
/* skip non-numeric or alpha */
index++;
continue;
+2
View File
@@ -35,6 +35,8 @@
# if defined(WIN32) || defined(WIN64)
# define strcasecmp _stricmp
#elif defined(__ZEPHYR__)
# include <strings.h>
# endif
#if defined(__GNUC__)
+3 -2
View File
@@ -96,9 +96,10 @@ size_t cobs_encode(uint8_t *buffer,
size_t read_index = 0;
size_t write_index = 1;
uint8_t code = 1;
uint8_t data, last_code;
uint8_t data = 0;
uint8_t last_code = 0;
if (buffer_size < 1) {
if ((buffer_size < 1) || (length < 1)) {
/* error - buffer too small */
return 0;
}