Skip to content

Commit e7c1192

Browse files
committed
libchafa: Let UBSan know unsigned int overflow is fine in popcnt
1 parent 4b122e0 commit e7c1192

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

chafa/internal/chafa-private.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ static inline guint64 chafa_slow_pop_count (guint64 v) G_GNUC_UNUSED;
238238
static inline gint chafa_population_count_u64 (guint64 v) G_GNUC_UNUSED;
239239
static inline void chafa_population_count_vu64 (const guint64 *vv, gint *vc, gint n) G_GNUC_UNUSED;
240240

241+
__attribute__ ((no_sanitize ("integer")))
241242
static inline guint64
242243
chafa_slow_pop_count (guint64 v)
243244
{

0 commit comments

Comments
 (0)