aboutsummaryrefslogtreecommitdiff
path: root/lib/ubsan.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-05-22 23:35:02 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-05-22 23:35:02 +0300
commit72df0de8cb579fd96449d19eb57fc71335907a19 (patch)
tree6a0a24478fe95f009619787afd24ddfe5df8cfd7 /lib/ubsan.c
parentd99be9e2912e0726ab779053b43a89e3b9e21490 (diff)
downloadkmi-72df0de8cb579fd96449d19eb57fc71335907a19.tar.gz
kmi-72df0de8cb579fd96449d19eb57fc71335907a19.zip
add @file info to all files
+ Next step, start documenting contents of each file.
Diffstat (limited to 'lib/ubsan.c')
-rw-r--r--lib/ubsan.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/ubsan.c b/lib/ubsan.c
index 7f4df2a..8b103df 100644
--- a/lib/ubsan.c
+++ b/lib/ubsan.c
@@ -1,10 +1,14 @@
+/**
+ * @file ubsan.c
+ * Tiny undefined behaviour sanitizer, mostly lifted from
+ * https://github.com/Abb1x/tinyubsan/blob/master/src/tinyubsan.c
+ *
+ * \todo: Add in more runtime info.
+ */
+
#include <apos/types.h>
#include <apos/debug.h>
-/* mostly lifted from https://github.com/Abb1x/tinyubsan/blob/master/src/tinyubsan.c */
-/* TODO: while this is really useful, it would probably be a good idea to add in
- * more runtime info, see linux for example */
-
struct tu_source_location {
const char *file;
uint32_t line;