10 Commits
Author SHA1 Message Date
Michał Kowalczyk d88e35e1c1 [Pal] Fix error codes in print_error and pal_strerror callsites
These functions (despite documentation comment saying exactly the
opposite) accepted only positive error values, but most of the callsites
passed negative error codes instead. This resulted in Graphene printing
"Unknown error" instead of a proper error details.
2020-12-09 14:32:56 +01:00
Michał Kowalczyk ad477ec7bf Reformat repository to our C formatting rules (final iteration) 2020-09-15 02:00:54 +02:00
Dmitrii Kuvaiskii 301587065a [LibOS,Pal] Make Graphene build with GCC 9.3
GCC 9.3 adds more static checks on C headers and sources. This
commit fixes all detected issues (mainly possible NULL pointer
dereferences and VLAs on stack).
2020-05-01 23:15:30 +00:00
Michał Kowalczyk 412b581c51 [Pal] Add an assert to get_norm_path()
This property was already implicitly assumed in a few callsites. We'd be
better to document & assert it.
2020-04-20 22:00:58 +02:00
Thomas Knauth de5efcd53d [Pal/lib] Add strcmp() function 2019-12-19 20:07:06 -08:00
Michał Kowalczyk 99677cdf72 Introduce ARRAY_SIZE macro 2019-10-04 21:05:13 +02:00
Rafał Wojdyła a04e71c7fa [Pal] Fix errors returned from mbedTLS crypto adapter
Most errors returned from mbedTLS functions were not converted to PAL errors.
This commit adds a separate PAL-error code block for crypto errors.
2019-10-03 16:42:50 -07:00
borysp f77f73803a [Pal] Fix bugs in normalize_path.c test 2019-09-10 00:41:30 +02:00
Michał Kowalczyk de42ebabe1 Reformat repository to our clang-format rules 2019-09-09 22:11:23 +02:00
borysp 8fc5d60777 [Pal/regression] Add path normalization tests 2019-08-12 20:22:27 -07:00