Lines 115-122
Link Here
|
115 |
// undefined behavior, so not a good idea; this just makes UBSan ignore the |
115 |
// undefined behavior, so not a good idea; this just makes UBSan ignore the |
116 |
// violation, so that our old code can continue to do what it's always been |
116 |
// violation, so that our old code can continue to do what it's always been |
117 |
// doing.) |
117 |
// doing.) |
118 |
static inline int32_t OverflowingMulS16ByS32ToS32(int16_t a, int32_t b) |
118 |
static inline int32_t RTC_NO_SANITIZE("signed-integer-overflow") |
119 |
RTC_NO_SANITIZE("signed-integer-overflow") { |
119 |
OverflowingMulS16ByS32ToS32(int16_t a, int32_t b) { |
120 |
return a * b; |
120 |
return a * b; |
121 |
} |
121 |
} |
122 |
|
122 |
|