-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tizen] Improve app-preferences get/set/remove functions (#18792)
* Improve app-preferences get/set/remove functions Improvements: - Do not check for key existence before calling get/set functions. The key existence status will be reported by these functions anyway. - Prevent memory leaks with scope allocators instead of manually calling free() functions. - Prevent out-of-bound read when logging non-string values by passing the data length to the printf-like function with "%.*s" specifier. * Do not use ternary "if" for logger format string Using ternary "if"s with logging macros forbids using simple augmentation with file name and/or line number, e.g.: #define ChipLogError(MOD, MSG, ...) \ ::Log(MOD, "%s:%d " MSG, __FILE__, __LINE__, ##__VA_ARGS__)
- Loading branch information
Showing
4 changed files
with
62 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters