mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix some UBSAN false positives (#6115)
* Fix some UBSAN false positives. * ruby tool/update-deps --fix
This commit is contained in:
parent
8309b1366c
commit
8c1808151f
Notes:
git
2022-07-13 03:48:32 +09:00
Merged-By: jhawthorn <john@hawthorn.email>
4 changed files with 11 additions and 4 deletions
|
@ -37,6 +37,7 @@
|
|||
|
||||
#include "regparse.h"
|
||||
#include <stdarg.h>
|
||||
#include "internal/sanitizers.h"
|
||||
|
||||
#define WARN_BUFSIZE 256
|
||||
|
||||
|
@ -394,6 +395,8 @@ str_end_cmp(st_data_t xp, st_data_t yp)
|
|||
return 0;
|
||||
}
|
||||
|
||||
NO_SANITIZE("unsigned-integer-overflow", static st_index_t str_end_hash(st_data_t xp));
|
||||
|
||||
static st_index_t
|
||||
str_end_hash(st_data_t xp)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue