mbed-os/platform
Kevin Bracey 2df322c43d Don't overrun in error prints
vsprintf returns the amount it would have written if the buffer had been
big enough, but we used that value directly when outputting, thus
overrunning memory and dumping stack contents.

Indicate truncation by inserting an ellipsis and newline. Slightly
increase the buffer size, so that we don't slightly decrease the maximum
printable characters because of the ellipsis insertion.

Partially addresses https://github.com/ARMmbed/mbed-os/issues/6850 by
forcing a newline when truncation happens - often truncation will drop a
newline and prevent a flush.
2018-10-17 12:55:20 +03:00
..
ATCmdParser.cpp platform: astyle update 2018-06-29 10:38:44 +01:00
ATCmdParser.h Edit ATCmdParser.md 2018-10-12 17:16:09 -05:00
CThunk.h platform: astyle update 2018-06-29 10:38:44 +01:00
CallChain.cpp platform: astyle update 2018-06-29 10:38:44 +01:00
CallChain.h platform: astyle update 2018-06-29 10:38:44 +01:00
Callback.h platform: astyle update 2018-06-29 10:38:44 +01:00
CircularBuffer.h Refactor circular buffer test to platform folder 2018-08-27 09:33:07 -05:00
CriticalSectionLock.h platform: astyle update 2018-06-29 10:38:44 +01:00
DeepSleepLock.h Splitting MBED_ERROR macros to support ones with/without error value argument 2018-05-23 12:21:28 -05:00
DirHandle.h platform: astyle update 2018-06-29 10:38:44 +01:00
FileBase.cpp FileBase: Fix unsetting of default when destroyed 2018-09-10 11:20:36 +03:00
FileBase.h Add special handling for "/default" filesystem 2018-09-05 13:28:42 +03:00
FileHandle.cpp Rework retarget opening 2018-02-06 11:07:21 +02:00
FileHandle.h platform: astyle update 2018-06-29 10:38:44 +01:00
FileLike.h Doxygen comment updates and fixes 2017-10-26 15:36:26 -05:00
FilePath.cpp platform: astyle update 2018-06-29 10:38:44 +01:00
FilePath.h platform: astyle update 2018-06-29 10:38:44 +01:00
FileSystemHandle.cpp Added statvfs API to get storage statistics 2017-12-29 16:42:31 -06:00
FileSystemHandle.h platform: astyle update 2018-06-29 10:38:44 +01:00
FileSystemLike.h platform: astyle update 2018-06-29 10:38:44 +01:00
FunctionPointer.h platform: astyle update 2018-06-29 10:38:44 +01:00
LocalFileSystem.cpp platform: astyle update 2018-06-29 10:38:44 +01:00
LocalFileSystem.h platform: astyle update 2018-06-29 10:38:44 +01:00
NonCopyable.h platform: astyle update 2018-06-29 10:38:44 +01:00
PlatformMutex.h platform: astyle update 2018-06-29 10:38:44 +01:00
ScopedLock.h platform: astyle update 2018-06-29 10:38:44 +01:00
SharedPtr.h Fix use_count() in SharedPtr 2018-08-21 12:59:54 +01:00
SingletonPtr.h Add * operator to SingletonPtr 2018-09-05 18:15:47 +03:00
Span.h Span: Fix type used in is_convertible traits. 2018-08-29 19:42:46 +01:00
Stream.cpp Replace fflush to fseek before writes 2018-10-05 14:29:15 -05:00
Stream.h Replace fflush to fseek before writes 2018-10-05 14:29:15 -05:00
Transaction.h platform: astyle update 2018-06-29 10:38:44 +01:00
astyle-branch.out platform: astyle update 2018-06-29 10:38:44 +01:00
critical.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
mbed_alloc_wrappers.cpp Signature to track memory allocations by wrapper functions. 2018-10-08 07:45:01 -05:00
mbed_application.c Merge pull request #7331 from TomoYamanaka/improve_bootloader 2018-07-03 07:37:19 -05:00
mbed_application.h Add the process for Cortex-A in mbed_applicaion 2018-06-22 10:47:23 +09:00
mbed_assert.c Remove empty line 2018-10-05 21:25:28 +02:00
mbed_assert.h Fix comments on mbed_assert.h 2017-10-27 15:38:44 -05:00
mbed_board.c Don't overrun in error prints 2018-10-17 12:55:20 +03:00
mbed_critical.c Remove uVisor from mbed-os 2018-08-22 16:36:59 +03:00
mbed_critical.h platform: astyle update 2018-06-29 10:38:44 +01:00
mbed_debug.h platform: astyle update 2018-06-29 10:38:44 +01:00
mbed_error.c mbed_error_vfprintf -> mbed_error_vprintf 2018-10-17 12:55:20 +03:00
mbed_error.h mbed_error_vfprintf -> mbed_error_vprintf 2018-10-17 12:55:20 +03:00
mbed_error_hist.c platform: astyle update 2018-06-29 10:38:44 +01:00
mbed_error_hist.h platform: astyle update 2018-06-29 10:38:44 +01:00
mbed_interface.c platform: astyle update 2018-06-29 10:38:44 +01:00
mbed_interface.h mbed_error_vfprintf -> mbed_error_vprintf 2018-10-17 12:55:20 +03:00
mbed_lib.json Merge pull request #8106 from c1728p9/macros_to_config 2018-09-22 16:40:53 -05:00
mbed_mem_trace.cpp platform: astyle update 2018-06-29 10:38:44 +01:00
mbed_mem_trace.h Copy edit changes to mbed_mem_trace.h 2018-10-12 11:13:31 -05:00
mbed_mktime.c platform: astyle update 2018-06-29 10:38:44 +01:00
mbed_mktime.h platform: astyle update 2018-06-29 10:38:44 +01:00
mbed_poll.cpp Merge pull request #7980 from kjbracey-arm/thread_deprecations 2018-10-15 10:09:55 -05:00
mbed_poll.h Doxygen comment updates and fixes 2017-10-26 15:36:26 -05:00
mbed_power_mgmt.h HAL: SleepManager: Update header file 2018-10-09 17:52:42 +02:00
mbed_preprocessor.h Added macro: 1. string length and 2. variable argument count 2018-01-31 14:06:16 -06:00
mbed_retarget.cpp Sync output devices on exit 2018-10-17 12:55:20 +03:00
mbed_retarget.h platform: astyle update 2018-06-29 10:38:44 +01:00
mbed_rtc_time.cpp Fix for issue #8155 (NRF52832: time stops after 35 minutes) 2018-09-18 09:48:53 +02:00
mbed_rtc_time.h Copy edit mbed_rtc_time.h 2018-10-12 14:50:52 -05:00
mbed_sdk_boot.c platform: astyle update 2018-06-29 10:38:44 +01:00
mbed_semihost_api.c platform: astyle update 2018-06-29 10:38:44 +01:00
mbed_semihost_api.h platform: astyle update 2018-06-29 10:38:44 +01:00
mbed_sleep.h Fix merge conflict mishap 2018-03-01 17:33:21 +00:00
mbed_stats.c When stack stats enabled, prevent exceptions if memory allocations fail 2018-08-08 16:18:29 +03:00
mbed_stats.h Edit mbed_stats.h 2018-10-12 11:08:01 -05:00
mbed_toolchain.h platform: astyle update 2018-06-29 10:38:44 +01:00
mbed_version.h Separate version header file to get version updates in Mbed OS 2018-07-11 09:41:30 -05:00
mbed_wait_api.h Clean up Thread deprecation warnings 2018-10-12 14:57:13 +03:00
mbed_wait_api_no_rtos.c platform: astyle update 2018-06-29 10:38:44 +01:00
mbed_wait_api_rtos.cpp Clean up Thread deprecation warnings 2018-10-12 14:57:13 +03:00
platform.h Updated includes of renamed platform header files 2017-03-01 16:45:55 -06:00
rtc_time.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
semihost_api.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
sleep.h Add system_reset() function to Mbed OS 2018-02-28 16:42:34 +00:00
toolchain.h [platform] fix doxygen group close 2017-04-26 09:14:36 -05:00
wait_api.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00