Commit Graph

34528 Commits (67d845be32e159c2897a5203b584b00c326c1fc8)

Author SHA1 Message Date
Jost, Chris 67d845be32 add nullpointer check in LWIP::socket_close 2023-07-05 11:22:22 +02:00
Martin Kojtal f9c0cd2a94
Merge pull request #15431 from alrvid/patch-1
Handle negative values passed to close()
2023-07-03 16:08:17 +02:00
Saheer Babu 89c1705234
Merge pull request #15433 from saheerb/master
doc: Provide mbed_die example for security considerations
2023-06-30 15:39:46 +01:00
Saheer Babu 564eb05acc doc: Provide mbed_die example for security considerations
Signed-off-by: Saheer Babu <saheer.babu@arm.com>
2023-06-27 15:46:11 +01:00
Martin Kojtal 0b85b72f9b
Merge pull request #15432 from saheerb/master
doc: Update README to include production usage warning
2023-06-27 13:23:16 +02:00
Saheer Babu 9d0f08516f doc: Update README to include production usage warning
Signed-off-by: Saheer Babu <saheer.babu@arm.com>
2023-06-27 09:34:01 +01:00
alrvid 56ca532ef1
Moved a { to the same line as if
Moved a { to the same line as if
2023-06-15 15:38:55 +02:00
alrvid 7e206a90db
Handle negative values passed to close()
Calling close() with negative numbers causes out-of-bounds indexing of the filehandles array. For example, this can happen if open() returns an error and the value is later passed to close().
2023-06-14 23:29:38 +02:00
Saheer Babu f347b89d0d
Merge pull request #15426 from MaximIntegrated/fix_bug_uart
Fix bug uart
2023-06-07 11:56:41 +01:00
Saheer Babu 3b07e5382c
Merge pull request #15427 from OpenNuvoton/nuvoton_m2354_mcuboot_header_sector_boundary
M2354: Fix debug failure in Mbed Studio
2023-06-07 11:56:23 +01:00
Chun-Chieh Li 8b69a94cef M2354: Fix debug failure in Mbed Studio
In Mbed Studio, debugging, based on pyOCD, requires Mbed OS application code starting on the sector boundary.

Modification list:
1.  Update TF-M import assets with MCUboot header padding to sector aligned
2.  Following above, change header size argument (-H) in wrapper.py command line
3.  Following below, fix min-write-size (--align) to 4 (per flash_area_align()) in wrapper.py command line
    https://docs.mcuboot.com/design.html#image-trailer

Related issue:
https://github.com/ARMmbed/mbed-os/issues/15417
2023-06-02 09:15:55 +08:00
Sadik.Ozer bdec190cbb MAX32660, MAX32670 UART performance improvement
Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>
2023-06-01 15:50:39 +03:00
Sadik.Ozer 0eac033cf1 Do not clear interrupt flag during initialization
This causes issue for repeaded initialization while using BufferedSerial mode

Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>
2023-06-01 15:50:39 +03:00
Martin Kojtal 9bff970507
Merge pull request #15430 from ARMmbed/0xc0170-patch-scancode
scancode: version >31.2.4 contains fix for reindexing
2023-06-01 13:38:08 +01:00
Martin Kojtal 633a8335e7
scancode: version >31.2.4 contains fix for reindexing
The workaround is not needed anymore (v32 is breaking this reindexing as they created new command to do that anyway).
2023-06-01 10:11:29 +01:00
Martin Kojtal 95f3f93c19
Merge pull request #15423 from Jookia/RFC_ipv6fix
LWIP::get_ip_addr: Prefer IPv4 over IPv6 link local addresses
2023-05-30 10:25:28 +01:00
Martin Kojtal 3a08a4582c
Merge pull request #15421 from MaximIntegrated/dev-update_max32660_sdk
Update max32660 sdk files
2023-05-25 13:08:46 +01:00
Martin Kojtal 1768ad9e5f
Merge pull request #15406 from IVOES/fix-null-check
Fix null pointer dereferencing
2023-05-22 11:35:15 +01:00
Jookia 06593d3d68 LWIP::get_ip_addr: Prefer IPv4 over IPv6 link local addresses
When IPv6 is prefered it will choose a link local address on a network
that lacks IPv6 over a working IPv4 network, breaking networking.
Change this behaviour to prefer a link local address only as a last
resort.

This also changes LWIP::get_ipv6_addr to not return link local
addresses. Use get_ipv6_link_local_addr instead for this.
2023-05-18 22:09:26 +10:00
Sadik.Ozer d42b9b377b Apply MAX32660 delta
Update mbed hal function as per of SDK update

Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>
2023-05-17 11:22:56 +03:00
Martin Kojtal b5692fd180
Merge pull request #15420 from jeromecoutant/PR_U5_120
STM32U5: STM32Cube_FW_U5_V1.2.0
2023-05-17 08:36:13 +01:00
Martin Kojtal 8779918cf0
Merge pull request #15422 from OpenNuvoton/nuvoton_eadc_extend_sample_time
Nuvoton: Enable configurability for extending sampling time for ADC/EADC
2023-05-16 16:29:06 +01:00
Ahmet Polat 3f4b177128 Update MAX32660 peripheral drivers with final ones that use by SDK 2023-05-15 13:08:43 +03:00
Chun-Chieh Li 91a1b59c95 Nuvoton: Enable extending sampling time for ADC/EADC
For all Nuvoton targets, enable extending sampling time in ADC/EADC clocks on per-pin basis.
2023-05-15 14:40:10 +08:00
Jerome Coutant 9f0ede486d STM32U5: STM32Cube_FW_U5_V1.2.0 2023-05-10 12:18:24 +02:00
Martin Kojtal cc39261968
Merge pull request #15414 from wdx04/stm32h7_ospi
Add OSPI support for STM32H7
2023-05-08 09:22:22 +01:00
Martin Kojtal 952c286555
Merge pull request #15415 from wdx04/fix_exfat
fix compiling errors of FATFileSystem when exFAT was enabled
2023-05-05 14:35:53 +01:00
Martin Kojtal 48a89f1ed5
Merge pull request #15412 from MultiTechSystems/update-arm-pack-manager
Add MAX32670 to tools/arm-pack-manager/index.json for bootloader support
2023-05-05 14:34:53 +01:00
Martin Kojtal 70dced2225
Merge pull request #15405 from IVOES/fix-stack-address-escape
Change storage-class of secret_buf to static
2023-05-05 14:34:35 +01:00
Martin Kojtal a987273f03
Merge pull request #15416 from thirtythreeforty/fixup-usb
drivers/usb: Add missing dependency on mbed-events
2023-05-05 14:32:03 +01:00
wdx04 3c17881e61 fix compiling errors of FATFileSystem when exFAT was enabled 2023-05-04 08:27:42 +08:00
wdx04 b22d510b47 Add OSPI support for STM32H7 2023-05-03 23:00:45 +08:00
Leon be862ed33a Add MAX32670 to tools/arm-pack-manager/index.json for bootloader support 2023-05-02 16:57:36 -05:00
George Hilliard 4b07fc63f3 drivers/usb: Add missing dependency on mbed-events
The compiler complained:

    In file included from .../mbed-os/drivers/usb/source/USBCDC_ECM.cpp:19:
    .../mbed-os/drivers/usb/include/usb/USBCDC_ECM.h:27:10: fatal error: events/EventQueue.h: No such file or directory
       27 | #include "events/EventQueue.h"
          |          ^~~~~~~~~~~~~~~~~~~~~
2023-05-01 09:02:50 -05:00
Martin Kojtal 00df0a3e25
Merge pull request #15407 from jasperjonker/fix/stm32h723
system_clock.c location for stm32h723xg
2023-04-26 16:48:59 +01:00
Martin Kojtal 0ea5decbb9
Merge pull request #15404 from IVOES/fix-overrunning-write
Fix potentially overrunning write of sprintf
2023-04-26 16:48:49 +01:00
Martin Kojtal 9a82ad670c
Merge pull request #15401 from IVOES/fix-virtual-call-in-constructor
Avoid calling virtual functions from constructors and destructors
2023-04-26 09:58:15 +01:00
Jasper d2fdd6f943
Fix variable name
Signed-off-by: Jasper <jasper.jonker@wingtra.com>
2023-04-22 11:27:13 +02:00
Jasper Jonker 5f9f8f3fe5
Fix system_clock.c location
Signed-off-by: Jasper Jonker <jasper.jonker@wingtra.com>
2023-04-21 16:18:20 +02:00
Mingjie Shen 378f2f579d Fix null pointer dereferencing
Add null check for return values of functions that are mostly (but not
always) checked for null.
E.g., since 98% of calls to protocol_stack_interface_info_get_by_id
check for null, it is likely that the function can return null values in
some cases, and omitting the check could crash the program.
2023-04-20 00:54:47 -04:00
Mingjie Shen 1b77cda621 Change storage-class of secret_buf to static
Storing the address of a local variable (`secret_buf`)
in non-local memory (`prf_ptr->secret`) can cause a
dangling pointer bug if the address is used after the function returns.
2023-04-19 17:07:42 -04:00
Mingjie Shen c958d1d5b9 Fix potentially overrunning write of sprintf
Format string "%d" requires 12 bytes (including the null terminator).
Also, use snprintf instead of sprintf to prevent buffer overflow.
2023-04-19 16:50:00 -04:00
Martin Kojtal d0ca14e4fe
Merge pull request #15403 from IVOES/fix-redefined-default-parameter
Define default parameters of functions of derived class the same as t…
2023-04-19 13:50:32 +01:00
Martin Kojtal 5db6bcc0a8
Merge pull request #15402 from IVOES/fix-new-array-delete-mismatch
Fix 'new[]' array freed with 'delete'
2023-04-19 13:50:21 +01:00
Martin Kojtal fe56b43372
Merge pull request #15400 from OpenNuvoton/nuvoton_m467_can
M467: Support CAN bus
2023-04-19 13:50:11 +01:00
Martin Kojtal 8628604392
Merge pull request #15399 from MaximIntegrated/dev-update_max32670_sdk
Update max32670 sdk files
2023-04-19 13:50:00 +01:00
Mingjie Shen 3a466307d2 Define default parameters of functions of derived class the same as the base class
The member function bringup() of class ThreadInterface redefines
parameter stack's default value to IPV6_STACK from the inherited default value
DEFAULT_STACK (in Interface).
The default value will be resolved statically, not by dispatch, so this
can cause confusion.
Similar arguments apply to LoWPANNDInterface and WisunInterface.
2023-04-19 01:35:19 -04:00
Mingjie Shen 65b14f7181 Fix 'new[]' array freed with 'delete'
The array _scratch_buf is allocated using new[] in line 761 of
mbed-os/storage/kvstore/securestore/source/SecureStore.cpp.
But it was freed using delete.
2023-04-18 23:59:00 -04:00
Mingjie Shen 4c3928ecf4 Avoid calling virtual functions from constructors and destructors
Virtual functions are resolved statically (not dynamically) in
constructors and destructors for the same class. The call should be made
explicitly static by qualifying it using the scope resolution operator.
2023-04-18 23:18:27 -04:00
Sadik.Ozer a50a44403b MAX32670 apply mbed required changes on peripheral drivers
Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>
2023-04-13 12:49:10 +03:00