Commit Graph
5 Commits
Author SHA1 Message Date
Chia-Che Tsai be9852784f [All components] Remove all modelines from all source files 2019-06-07 15:30:43 -05:00
Michał Kowalczyk 16d90cfe12 Fix parenthesizing and formatting of C macros 2019-05-23 19:14:23 +02:00
Michał Kowalczyk 46f553fe5d Cleanup and uppercase C macros 2019-05-23 19:14:23 +02:00
Don Porter 203a3920fa Fix a regression on exec in trying to repro #59. Remove an assertion that doesn't seem to be doing much good, given that the size is always statically determined in hex2str.
Fixing the bound of a debug buffer in SGX PAL

Rewrite bytes2hexstr; Add two new macros, alloca_bytes2hexstr() and malloc_bytes2hexstr().

Remove HASHBUF_SIZE

Add comments for the bytes2hexstr() macros.

Add a compile-time assertion
2018-11-13 13:02:42 -05:00
Don Porter 1f2360c857 Hex2str clean up and unit testing (#134)
* Fix off-by-one error in __hex2str()

* Add a unit test and documentation for hex2str, in light of issue #129/PR #130.  Although only used by SGX pal, I moved hex2str into a library function, since it isn't SGX specifix.  Change the function signature to pass in a stack-allocated buffer.  Adjust a few hash types, and make the build stop earlier on a failure.
2018-06-16 17:31:20 -04:00