Граф коммитов

4582 Коммитов

Автор SHA1 Сообщение Дата
Raul Leclair 60865b305f
Updating submodules (#2665) 2025-01-28 15:27:48 -08:00
Ewerton Scaboro da Silva 56b3712f75
Update submodules (add support for mbedTLS 3.x) (#2662)
* Update submodules (add support for mbedTLS 3.x)

* Fix submodule reference
2025-01-06 22:23:13 -08:00
Ewerton Scaboro da Silva 7afef61515
Re-enable upload-to-blob tests (#2651)
* Re-enable upload to blob tests

* Add stages/jobs to enable and disable storage account for testing
2024-10-07 16:56:07 -07:00
Ewerton Scaboro da Silva b8af2f4ee2
Updates for LTS release 08_2024, bump version of main to 1.14.0 (#2641)
* Bump version 1.13.0 to 1.14.0

* Update LTS Schedule for LTS_08_2024

* Remove missing expired LTS from maintenance table
2024-08-13 19:00:53 +00:00
Ewerton Scaboro da Silva 0f497b38e9
Update submodules (#2640) 2024-08-09 16:04:52 -07:00
Eric Wolz c94b2c3cd4
fix for safemath header conflict when cross compiling (#2637)
* fix for safemath header conflict when cross compiling

* update amqp submodule for safe math

---------

Co-authored-by: Ewerton Scaboro da Silva <ewertons@microsoft.com>
2024-07-19 21:29:51 +00:00
Ewerton Scaboro da Silva 4f1755878c
Fix file upload openssl options with x509 authentication (#2635)
Signed-off-by: Mohit Malhotra <dev.mohitmalhotra@gmail.com>
Co-authored-by: Mohit Malhotra <dev.mohitmalhotra@gmail.com>
2024-07-17 16:28:52 -07:00
Ewerton Scaboro da Silva 9c6512f25a
Update uamqp (to get link credit fixes) (#2631) 2024-06-26 11:22:04 -07:00
Ewerton Scaboro da Silva f9fdf90850
Update uamqp submodule (#2624) 2024-06-19 09:43:22 -07:00
Ewerton Scaboro da Silva 8ebc30e974
Disable upload to blob tests in C gates (#2621)
* Disable upload to blob tests in C gates

This is a temporary measure until we set up the gates to workaround the guidance to disable azure storage SAS token authorization.

To reverse these changes:

In azure-iot-sdk-c/build:
sed -i "s/--no_uploadtoblob //g" .vsts-ci.yml

In azure-iot-sdk-c/jenkins:
grep -l run-e2e-tests *.sh | xargs sed -i "s/--no_uploadtoblob //g"
grep -l run-e2e-tests *.cmd | xargs sed -i "s/--no-uploadtoblob //g"

* Add guard in iothubclientcore_ut for DONT_USE_UPLOADTOBLOB

* Disable u2b tests in linux_openssl_engine.sh

* Fix arg-uploadtoblob label in build.cmd

* Disable upload to blob in remaining builds

* Fix more unit tests disabling u2b

* Fix iothubclientcore_ut.c

* Add new openssl valgrind exceptions
2024-06-07 00:13:17 +00:00
Ewerton Scaboro da Silva 97ac6cc87f
Submodule update (#2620) 2024-05-28 14:46:26 -07:00
Ewerton Scaboro da Silva f449635b43
Fix possible UAF in readApplicationPropertiesFromuAMQPMessage (#2618) 2024-05-28 19:10:12 +00:00
Raul Leclair b02fa829cc
Updating c-utility and submodules for schannel fix (#2616) 2024-05-15 17:47:24 -07:00
Ewerton Scaboro da Silva 614cb35d76
Capture upload to blob result and bubble up after completion in core (#2615) 2024-05-13 11:32:11 -07:00
Ewerton Scaboro da Silva fce8040dfa
Add guard against crash in amqp messenger/mq (#2608)
There are instances where a message will be destroyed at the iothubtransport amqp messeger layer,
but be still in flight at the messagesender (uamqp) layer, running at the risk of messagesender
invoking the send complete callback and resulting in a memory read error over an address previously
freed. Using the async operation feature of uamqp adds an extra layer of safety to cancel the
existing send operation, preventing the callback to be fired improperly.
2024-04-11 15:35:55 -07:00
Eric Wolz 15171e9fa7
Ericwol/arm (#2606)
* add arm build
2024-04-03 09:53:30 -07:00
Eric Wolz 80055f5582
add timeouts to pipeline (#2604) 2024-04-02 09:46:15 -07:00
Eric Wolz 71b5541748
Delay republish on MQTT reconnect. (#2602)
* Delay republish on MQTT reconnect.

* fix msgPublishTime math

* Added unit tests
2024-04-01 16:20:31 -07:00
Eric Wolz 2bff419317
Add MQTT trace (#2601) 2024-03-26 13:22:24 -07:00
Ewerton Scaboro da Silva 1d98530a78
Avoid double-free in amqp messaging module (#2599) 2024-03-26 10:39:14 -07:00
Eric Wolz 9f3ef4fe5c
fix link list delete in remove_timed_out_events (#2600) 2024-03-25 10:50:24 -07:00
Ewerton Scaboro da Silva b85ef9522e
Update LTS release example in readme to reflect current release process (#2598)
* Update LTS release example in readme to reflect current release process

* Update readme.md

Co-authored-by: Raul Leclair <raulleclair@microsoft.com>

* Moot commit to trigger build

---------

Co-authored-by: Raul Leclair <raulleclair@microsoft.com>
2024-03-14 22:28:01 -07:00
Eric Wolz dd31b51eee
Add %s NULL check to logging statements (#2594)
* Add null ptr to "NULL" string

* avoid double maco expansion

* added comments
  // advoid MU_P_OR_NULL double call

* handle NULL CompareProperties
2024-03-13 11:29:53 -07:00
Eric Wolz f8e111bf7d
Fix unit tests on ARM arch (#2597)
* Add unit test to gcc ARM
2024-03-12 22:40:34 -07:00
Ewerton Scaboro da Silva e0c0c2c3c1
Float upload to blob errors in convenience layer (gh issue #2569) (#2593)
* Float upload to blob errors in convenience layer (gh issue #2569)

* Add unit tests

* Address CR comments
2024-03-08 22:43:34 -08:00
Ewerton Scaboro da Silva 09d4e9ca46
Update submodules (#2590) 2024-03-06 10:58:17 -08:00
Ewerton Scaboro da Silva 75c6035e0d
Update submodules (#2589) 2024-03-06 00:14:20 +00:00
Ewerton Scaboro da Silva 518d426ac2
Bump version from 1.12.0 to 1.13.0. Add LTS Table entry for LTS_03_2024 (#2588) 2024-03-04 20:01:09 -08:00
Eric Wolz e2cc0b4de2
memcheck for C SDK (#2583)
* malloc size check

* fix unit test

* PR feedback

* Update iothub_client/src/iothubtransport_amqp_messenger.c

Co-authored-by: Ewerton Scaboro da Silva <ewertons@microsoft.com>

* Update iothub_client/src/iothubtransport_amqp_telemetry_messenger.c

Co-authored-by: Ewerton Scaboro da Silva <ewertons@microsoft.com>

* Update iothub_client/src/iothubtransport_amqp_twin_messenger.c

Co-authored-by: Ewerton Scaboro da Silva <ewertons@microsoft.com>

* Update serializer/inc/serializer_devicetwin.h

Co-authored-by: Ewerton Scaboro da Silva <ewertons@microsoft.com>

---------

Co-authored-by: Ewerton Scaboro da Silva <ewertons@microsoft.com>
2024-02-29 17:21:48 -08:00
Eric Wolz 9d67f5ab5d
Update DPS API vertion to 2021-06-01 (#2584) 2024-02-26 15:34:35 -08:00
Ewerton Scaboro da Silva 01e9e2d84e
Avoid crash in http_e2e due to no string function for enum (#2582)
IOTHUB_CLIENT_CONFIRMATION_RESULT is not defined in the iothubclient_http_e2e.c,
causing MU_ENUM_TO_STRING to return NULL and strlen (stack below) to SEGFAULT,
since as per spec NULL arg to strlen has undefined behavior (thus assume the worst).

2024-02-21T22:23:23.0396823Z 240: ==9665== Process terminating with default action of signal 11 (SIGSEGV)
2024-02-21T22:23:23.0397379Z 240: ==9665==  Access not within mapped region at address 0x3
2024-02-21T22:23:23.0398384Z 240: ==9665==    at 0x48507D6: strlen (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_drd-amd64-linux.so)
2024-02-21T22:23:23.0399076Z 240: ==9665==    by 0x4E5DD14: __vfprintf_internal (vfprintf-internal.c:1688)
2024-02-21T22:23:23.0399629Z 240: ==9665==    by 0x4E70F99: __vsnprintf_internal (vsnprintf.c:114)
2024-02-21T22:23:23.0400154Z 240: ==9665==    by 0x119C0F: ctest_vsprintf_char (ctest.c:502)
2024-02-21T22:23:23.0400660Z 240: ==9665==    by 0x119CEF: ctest_sprintf_char (ctest.c:520)
2024-02-21T22:23:23.0401182Z 240: ==9665==    by 0x116634: IoTHub_HTTP_SendEvent_Shared_e2e (iothubclient_http_e2e.c:707)
2024-02-21T22:23:23.0401907Z 240: ==9665==    by 0x1191D0: RunTests (ctest.c:158)
2024-02-21T22:23:23.0402546Z 240: ==9665==    by 0x1189F8: main (main.c:9)
2024-02-22 19:55:20 +00:00
Ewerton Scaboro da Silva 9cf2994f42
Add a queue to iothub_messaging (only for longhaul, deprecated for publish use) (#2579)
* Partial changes to add a queue to iothub_messaging (only for longhaul, deprecated for publish use)

* Final changes to add a queue to iothub_messaging (only for longhaul, deprecated for publish use)

* Remove references to umock_c_negative_tests_get_call_description

* Address code review comments

* Fix build break

* Fix another build break

* Fix valgrind issue in iothub_messaging_ll.c

* Fix build break
2024-02-21 15:33:10 -08:00
Ewerton Scaboro da Silva 4c23991f90
Fix xcodenative build (set LD path to latest curl version installed) (#2581) 2024-02-21 20:28:13 +00:00
Eric Wolz 31ddaeb7c0
enable windowsx64debug (#2576) 2024-02-10 09:48:49 -08:00
Eric Wolz 8a0c0dd079
Update malloc checks on submodules (#2573)
* Update submodules

* fix rand()

* update cutil

* update uTPM

* update umqtt

* update cutil
2024-02-09 23:31:55 -08:00
Eric Wolz 3b03c729e9
fix vs2017 build break (#2574) 2024-02-09 15:08:51 -08:00
Eric Wolz 6b7753837e
sas time overflow unit tests (#2558)
* fx overflow of SAS lifetime with large refresh values

* add unit tests
2024-01-26 18:27:30 -08:00
Eric Wolz 95f94a6671
Add malloc size checks (#2568)
* Add malloc size checks

* update cutil
2024-01-26 16:29:24 -08:00
Valerie Avva Lim 0030ea8b36
fix potential size_t overflow in twin serializer (#2567) 2024-01-25 11:07:15 -08:00
Ewerton Scaboro da Silva 063c235246
Avoid Bad arguments: value = (nil) error due to indicate_all_messages_as_error (#2556)
The following callstack

amqpvalue_get_list_item_count (value=0x0, size=0x7fffffffda68) at uamqp/src/amqpvalue.c:1345
internal_on_event_send_complete_callback (context=0x55555627dd90, send_result=MESSAGE_SEND_ERROR, delivery_state=0x0)
    at iothub_client/src/iothubtransport_amqp_telemetry_messenger.c:986
indicate_all_messages_as_error (message_sender=0x555555b60860) at uamqp/src/message_sender.c:701
messagesender_close (message_sender=0x555555b60860) at uamqp/src/message_sender.c:846
messagesender_destroy (message_sender=0x555555b60860) at uamqp/src/message_sender.c:795
destroy_event_sender (instance=0x5555556c74f0) at iothub_client/src/iothubtransport_amqp_telemetry_messenger.c:362
telemetry_messenger_stop (messenger_handle=0x5555556c74f0)
    at iothub_client/src/iothubtransport_amqp_telemetry_messenger.c:1666

causes this error message:

Error: Time:Wed Jan 10 20:37:31 2024 File:/home/ewertons/code/s1/azure-iot-sdk-c/uamqp/src/amqpvalue.c Func:amqpvalue_get_list_item_count Line:1345 Bad arguments: value = (nil), size = 0x1ffefff968

Because indicate_all_messages_as_error passes NULL for `delivery_state`.
2024-01-22 22:10:10 -08:00
Ewerton Scaboro da Silva f91c1305c8
Fix potential Int wraparound in CopyPayloadToString (#2565) 2024-01-23 01:46:57 +00:00
Ewerton Scaboro da Silva cbc8d7dfcc
Update uamqp (get double-free fixes) (#2563)
* Update uamqp (get double-free fixes)

* Temporarily disable Windows 64 Debug job in C-Canary
2024-01-22 23:56:34 +00:00
Ewerton Scaboro da Silva 06099547ea
Fix IoTHubClient_LL_UploadToBlob_NotifyCompletion to use empty string when responseMessage is NULL (gh2554) (#2555) 2024-01-09 17:16:42 +00:00
Eric Wolz e521623650
add docs for IOTHUBMESSAGE_ASYNC_ACK (#2341)
Co-authored-by: Ewerton Scaboro da Silva <ewertons@microsoft.com>
2024-01-02 20:25:47 +00:00
Ewerton Scaboro da Silva 35914cf7fe
Add note to LTS maintenance table related to end of life support (#2551) 2023-12-27 23:02:23 +00:00
Cristian Pop 3ca49521b2
Update CODEOWNERS (#2549)
* Update CODEOWNERS

Removing myself from codeowners.

* Update .github/CODEOWNERS

Co-authored-by: Valerie Avva Lim <54871851+vaavva@users.noreply.github.com>

---------

Co-authored-by: Valerie Avva Lim <54871851+vaavva@users.noreply.github.com>
2023-12-22 07:42:55 -08:00
Eric Wolz 40a62f61e8
add extern "C" to iothub_client_properties.h (#2548) 2023-12-07 10:51:39 -08:00
Eric Wolz 4b530fb707
update submodules (#2547) 2023-12-06 01:54:04 +00:00
Ewerton Scaboro da Silva fcac541ed7
Document that azure-iot-sdk-c does not currently support HTTPS proxy, only HTTP (#2546)
* Document that azure-iot-sdk-c does not currently support HTTPS proxy, only HTTP

* Update doc/Iothub_sdk_options.md

Co-authored-by: Eric Wolz <ericwol@microsoft.com>

* Update doc/Iothub_sdk_options.md

Co-authored-by: Eric Wolz <ericwol@microsoft.com>

---------

Co-authored-by: Eric Wolz <ericwol@microsoft.com>
2023-11-29 21:34:03 +00:00
Eric Wolz 134adaa2d8
cutil update (#2545)
* cutil update

* update cutil
2023-11-28 10:46:45 -08:00