diff options
| author | Aleksa Vuckovic <aleksa@vuckovic.cc> | 2023-02-25 07:26:22 +0100 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksa@vuckovic.cc> | 2023-02-25 08:45:12 +0100 |
| commit | 5ba212fe7123d454414f64d42ec7ff0822458c13 (patch) | |
| tree | a82f8057cc57b6efb8ac19f9d01c2cc1aebc29c0 /kernel/src/check/ubsan.c | |
| parent | 239900af293f192931391dc5579afab39a43e6c6 (diff) | |
ANSI C: // -> /* */
Diffstat (limited to 'kernel/src/check/ubsan.c')
| -rw-r--r-- | kernel/src/check/ubsan.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/kernel/src/check/ubsan.c b/kernel/src/check/ubsan.c index dc6c4b4..eb7721e 100644 --- a/kernel/src/check/ubsan.c +++ b/kernel/src/check/ubsan.c @@ -247,10 +247,11 @@ void __ubsan_handle_vla_bound_not_positive(void *data_raw, void *bound_raw) ABORT_VARIANT_VP_VP(vla_bound_not_positive); struct ubsan_float_cast_overflow_data { - // TODO: Remove this GCC 5.x compatibility after switching to GCC 6.x. The - // GCC developers accidentally forgot the source location. Their - // libubsan probes to see if it looks like a path, but we don't need - // to maintain compatibility with multiple gcc releases. See below. + /* TODO: Remove this GCC 5.x compatibility after switching to GCC 6.x. The + * GCC developers accidentally forgot the source location. Their + * libubsan probes to see if it looks like a path, but we don't need + * to maintain compatibility with multiple gcc releases. See below. + */ #if !(defined(__GNUC__) && __GNUC__ < 6) struct ubsan_source_location location; #endif @@ -324,8 +325,9 @@ struct ubsan_nonnull_arg_data { struct ubsan_source_location attr_location; }; -// TODO: GCC's libubsan does not have the second parameter, but its builtin -// somehow has it and conflict if we don't match it. +/* TODO: GCC's libubsan does not have the second parameter, but its builtin + * somehow has it and conflict if we don't match it. + */ void __ubsan_handle_nonnull_arg(void *data_raw, intptr_t index_raw) { struct ubsan_nonnull_arg_data *data = |
