Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: third_party/sqlite/src/test/expr.test

Issue 2370463002: [backport] Address integer overflow in sqlite3MulInt64. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/sqlite/src/src/util.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 2001 September 15 1 # 2001 September 15
2 # 2 #
3 # The author disclaims copyright to this source code. In place of 3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing: 4 # a legal notice, here is a blessing:
5 # 5 #
6 # May you do good and not evil. 6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others. 7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give. 8 # May you share freely, never taking more than you give.
9 # 9 #
10 #*********************************************************************** 10 #***********************************************************************
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 {i1=-4294967296, i2=2147483647} {i1*i2} -9223372032559808512 301 {i1=-4294967296, i2=2147483647} {i1*i2} -9223372032559808512
302 test_realnum_expr expr-1.254\ 302 test_realnum_expr expr-1.254\
303 {i1=4294967296, i2=-2147483648} {i1*i2} -9223372036854775808 303 {i1=4294967296, i2=-2147483648} {i1*i2} -9223372036854775808
304 test_realnum_expr expr-1.255\ 304 test_realnum_expr expr-1.255\
305 {i1=4294967296, i2=-2147483647} {i1*i2} -9223372032559808512 305 {i1=4294967296, i2=-2147483647} {i1*i2} -9223372032559808512
306 test_realnum_expr expr-1.256\ 306 test_realnum_expr expr-1.256\
307 {i1=-4294967296, i2=-2147483648} {i1*i2} 9.22337203685478e+18 307 {i1=-4294967296, i2=-2147483648} {i1*i2} 9.22337203685478e+18
308 test_realnum_expr expr-1.257\ 308 test_realnum_expr expr-1.257\
309 {i1=-4294967296, i2=-2147483647} {i1*i2} 9223372032559808512 309 {i1=-4294967296, i2=-2147483647} {i1*i2} 9223372032559808512
310 310
311 test_realnum_expr expr-1.260\
312 {i1=3037000500, i2=3037000500} {i1*i2} 9.22337203700025e+18
313 test_realnum_expr expr-1.261\
314 {i1=3037000500, i2=-3037000500} {i1*i2} -9.22337203700025e+18
315 test_realnum_expr expr-1.262\
316 {i1=-3037000500, i2=3037000500} {i1*i2} -9.22337203700025e+18
317 test_realnum_expr expr-1.263\
318 {i1=-3037000500, i2=-3037000500} {i1*i2} 9.22337203700025e+18
319
320 test_realnum_expr expr-1.264\
321 {i1=3037000500, i2=3037000499} {i1*i2} 9223372033963249500
322 test_realnum_expr expr-1.265\
323 {i1=3037000500, i2=-3037000499} {i1*i2} -9223372033963249500
324 test_realnum_expr expr-1.266\
325 {i1=-3037000500, i2=3037000499} {i1*i2} -9223372033963249500
326 test_realnum_expr expr-1.267\
327 {i1=-3037000500, i2=-3037000499} {i1*i2} 9223372033963249500
328
329 test_realnum_expr expr-1.268\
330 {i1=3037000499, i2=3037000500} {i1*i2} 9223372033963249500
331 test_realnum_expr expr-1.269\
332 {i1=3037000499, i2=-3037000500} {i1*i2} -9223372033963249500
333 test_realnum_expr expr-1.270\
334 {i1=-3037000499, i2=3037000500} {i1*i2} -9223372033963249500
335 test_realnum_expr expr-1.271\
336 {i1=-3037000499, i2=-3037000500} {i1*i2} 9223372033963249500
337
311 }} 338 }}
312 339
313 ifcapable floatingpoint { 340 ifcapable floatingpoint {
314 test_expr expr-2.1 {r1=1.23, r2=2.34} {r1+r2} 3.57 341 test_expr expr-2.1 {r1=1.23, r2=2.34} {r1+r2} 3.57
315 test_expr expr-2.2 {r1=1.23, r2=2.34} {r1-r2} -1.11 342 test_expr expr-2.2 {r1=1.23, r2=2.34} {r1-r2} -1.11
316 test_expr expr-2.3 {r1=1.23, r2=2.34} {r1*r2} 2.8782 343 test_expr expr-2.3 {r1=1.23, r2=2.34} {r1*r2} 2.8782
317 } 344 }
318 set tcl_precision 15 345 set tcl_precision 15
319 ifcapable floatingpoint { 346 ifcapable floatingpoint {
320 test_expr expr-2.4 {r1=1.23, r2=2.34} {r1/r2} 0.525641025641026 347 test_expr expr-2.4 {r1=1.23, r2=2.34} {r1/r2} 0.525641025641026
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 do_execsql_test expr-13.8 { 973 do_execsql_test expr-13.8 {
947 SELECT "" <= ''; 974 SELECT "" <= '';
948 } {1} 975 } {1}
949 do_execsql_test expr-13.9 { 976 do_execsql_test expr-13.9 {
950 SELECT '' <= ""; 977 SELECT '' <= "";
951 } {1} 978 } {1}
952 979
953 980
954 981
955 finish_test 982 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/src/util.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698