#
1a648569 |
| 10-Mar-2025 |
Ed Tanous <etanous@nvidia.com> |
Rework guid for fuzzing
There's a lot of places we do guid comparisons against lists of known guids. Break these out into helper functions to help not duplicate the fuzzing logic in a lot of places
Rework guid for fuzzing
There's a lot of places we do guid comparisons against lists of known guids. Break these out into helper functions to help not duplicate the fuzzing logic in a lot of places, and allow us to fuzz these places appropriately.
Change-Id: I76c79cd62ccc95feb2609d5098db546f740711e1 Signed-off-by: Ed Tanous <etanous@nvidia.com>
show more ...
|
#
c2ebdddb |
| 09-Mar-2025 |
Ed Tanous <ed@tanous.net> |
Fix up guid
GUIDs have some cases where they might not be representable as a string, due to an overflow. To handle this previously, the existing implementation just allocated extra space.
To ensur
Fix up guid
GUIDs have some cases where they might not be representable as a string, due to an overflow. To handle this previously, the existing implementation just allocated extra space.
To ensure that we are always publishing correct guids, break this function down into an add_guid method that we can call anytime we add a guid to json. This function can use the appropriate guid string length, and if we go over, we can make sure that we don't publish the string at all, by handling the appropriate error codes.
Change-Id: I98239b7d5ba7567cea1b016579d7566e292b6e81 Signed-off-by: Ed Tanous <ed@tanous.net>
show more ...
|
#
5e2164a0 |
| 09-Mar-2025 |
Ed Tanous <ed@tanous.net> |
More range checks
This is a second patch adding more range checks where appropriate.
Change-Id: Ie169efe8924153c9cc11e4472a1b07b8d04efb3b Signed-off-by: Ed Tanous <ed@tanous.net>
|
#
596c59e9 |
| 10-Mar-2025 |
Ed Tanous <etanous@nvidia.com> |
Fix timestamp handling
timestamp_to_string can fail in unexpected ways. It attempts to do some level of error checks, but doesn't return the result of those back to the caller, which means that thi
Fix timestamp handling
timestamp_to_string can fail in unexpected ways. It attempts to do some level of error checks, but doesn't return the result of those back to the caller, which means that this can possibly read from unpopulated memory.
Adjust the prototype and fix the issues in this helper function.
Change-Id: I9df2dc17142b1fd3a686fd852ac80f4691fd25be Signed-off-by: Ed Tanous <etanous@nvidia.com>
show more ...
|
#
ae8f6d9a |
| 29-Jan-2025 |
Aushim Nagarkatti <anagarkatti@nvidia.com> |
Remove validation bits
Discard invalid properties from json decode. JSON output should only contain valid properties. This saves time in preventing post processing of output for valid fields.
Ensur
Remove validation bits
Discard invalid properties from json decode. JSON output should only contain valid properties. This saves time in preventing post processing of output for valid fields.
Ensure round trip validity with validation bits removed and required properties populated.
Fix bugs in json decode.
Overhaul unit tests to use valijson. Add tests with static examples to validate against schema. Use and nlohmann for better schema validation over intrinsic libcper validation.
Example json output before: { "ValidationBits": { "LevelValid": false, "CorrectedValid": true }, "Level": 1, "Corrected": true }
After: { "Corrected": true }
Change-Id: I188bdc2827a57d938c22a431238fadfcdc939ab8 Signed-off-by: Aushim Nagarkatti <anagarkatti@nvidia.com>
show more ...
|
#
13f099ff |
| 20-Nov-2024 |
Ed Tanous <etanous@nvidia.com> |
Fix timestamp buffer length overrun
Addresses the buffer overrun introduced by format changes.
Change-Id: I8341818747b43883a3d3b243e9a1fbc5bcc927cf Signed-off-by: Andrew Adriance <aadriance@nvidia.
Fix timestamp buffer length overrun
Addresses the buffer overrun introduced by format changes.
Change-Id: I8341818747b43883a3d3b243e9a1fbc5bcc927cf Signed-off-by: Andrew Adriance <aadriance@nvidia.com> Signed-off-by: Ed Tanous <etanous@nvidia.com>
show more ...
|
#
e42fb487 |
| 15-Oct-2024 |
Thu Nguyen <thu@os.amperecomputing.com> |
Change include style to use system includes
The libcper header files in `libcper` are installed to `usr/include/libcper`. Use that system includes in `libcper` source instead of using the project in
Change include style to use system includes
The libcper header files in `libcper` are installed to `usr/include/libcper`. Use that system includes in `libcper` source instead of using the project includes.
Change-Id: I596edc2c754dae4829844f535a1e34caa246fb43 Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
show more ...
|