ruby-changes:53427
From: shyouhei <ko1@a...>
Date: Fri, 9 Nov 2018 18:44:55 +0900 (JST)
Subject: [ruby-changes:53427] shyouhei:r65643 (trunk): util.c: suppress warnings
shyouhei 2018-11-09 18:44:49 +0900 (Fri, 09 Nov 2018) New Revision: 65643 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65643 Log: util.c: suppress warnings These functions handle overflows correctly. Modified files: trunk/util.c Index: util.c =================================================================== --- util.c (revision 65642) +++ util.c (revision 65643) @@ -84,6 +84,7 @@ const signed char ruby_digit36_to_number https://github.com/ruby/ruby/blob/trunk/util.c#L84 /*f*/ -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, }; +NO_SANITIZE("unsigned-integer-overflow", extern unsigned long ruby_scan_digits(const char *str, ssize_t len, int base, size_t *retlen, int *overflow)); unsigned long ruby_scan_digits(const char *str, ssize_t len, int base, size_t *retlen, int *overflow) { @@ -2970,6 +2971,7 @@ ret: https://github.com/ruby/ruby/blob/trunk/util.c#L2971 return sign ? -dval(rv) : dval(rv); } +NO_SANITIZE("unsigned-integer-overflow", static int quorem(Bigint *b, Bigint *S)); static int quorem(Bigint *b, Bigint *S) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/