mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-25 20:23:07 +00:00
eed4296890
* Furi HAL: memory protection unit * Core: prohibit NULL dereferencing, even for reads. * Applications: fix NULL dereference * Core: stack protection by MPU * MPU: stack region alignment * Apps: fix null pointer dereferences * Threads: fix non-null arg check * Desktop settings: fix null pointer dereference * Core: documented null-check hack * Fix null dereference issues * Apps: args check * Core: naming fixes * format code * Core: remove NONNULL specifier * FurHal: move MPU initialization to begining, fix enum naming Co-authored-by: あく <alleteam@gmail.com>
22 lines
469 B
C
22 lines
469 B
C
#pragma once
|
|
|
|
#include <m-string.h>
|
|
#include <core/common_defines.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
typedef struct ValidatorIsFile ValidatorIsFile;
|
|
|
|
ValidatorIsFile* validator_is_file_alloc_init(
|
|
const char* app_path_folder,
|
|
const char* app_extension,
|
|
const char* current_name);
|
|
|
|
void validator_is_file_free(ValidatorIsFile* instance);
|
|
|
|
bool validator_is_file_callback(const char* text, string_t error, void* context);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|