The fail-safe application logger is designed to avoid crashes in C/C++ programs when generating log messages. By performing runtime validation, it effectively prevents common pitfalls associated with printf() misuses and execution faults. This library allows applications to continue running smoothly, providing robust and reliable logging without compromising safety.
This Fail-safe API library is designed to minimize crashes in C/C++ applications when generating log messages. The primary advantage of utilizing this library over other logging tools lies in its comprehensive runtime validation capabilities. It effectively mitigates common issues associated with the misuse of the printf() style logging, such as passing NULL, zero, or negative values for string types (%s), which are frequent causes of segmentation faults and runtime errors.
Key Features:
- Runtime Validation: The API performs extensive checks to identify potential execution flaws before they lead to application failure.
- Error Handling: In cases where a validation fails, the API seamlessly generates an error code and allows the application to continue processing without manual intervention.
- Bound Parameter Methodology: This library employs a Bound Parameter approach to decode, analyze, and validate execution behavior, ensuring safe and effective log message generation.
Core API Functionality:
- Utilizes a C-program print() style interface, familiar to programmers for logging messages.
- Converts log message strings and their arguments into structured element/value pairs.
- Analyzes these pairs to verify the accuracy of log message argument utilization.
- Checks for unintentional misuse of log arguments by programmers.
- Identifies potentially malicious patterns that may exploit printf() vulnerabilities.
- Generates log messages suitable for both development and production environments.
- Ensures robust and reliable operations through fail-safe mechanisms.
Usage Examples:
For a quick setup and usage of Wandi-SSAL API functions in C/C++ applications, refer to the following:
- LoggerStartUp()
- LoggerAppsMsg()
- LoggerShutDown()
Setup and define your logger messages with the LoggerMessageDefines.txt configuration file.
Example Implementations:
For practical application examples, consult the WandiSSAL-examples.c file showcasing the Bound Capability Parameter Validation in action.
Additional Documents:
- Documentation and download links are available on the GitHub repository.
- For Linux OS users, access the necessary files: WandiSSAL-LoggerLib-2.0-linux-arm64-gnu.zip and its accompanying checksum WandiSSAL-LoggerLib-2.0-linux-arm64-gnu.zip.asc.
Contact: bwoodley@istech.com for further inquiries.
No comments yet.
Sign in to be the first to comment.