[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] avoid integer overflow
From: |
Yifei Jiang |
Subject: |
[PATCH 0/2] avoid integer overflow |
Date: |
Mon, 16 Mar 2020 19:40:48 +0800 |
the constant default type is "int", when the constant is shifted to the left,
it may exceed 32 bits, resulting in integer overflowing. So constant type need
change to "long"
Yifei Jiang (2):
tcg: avoid integer overflow
accel/tcg: avoid integer overflow
accel/tcg/cputlb.c | 6 +++---
tcg/tcg-op-gvec.c | 18 +++++++++---------
tcg/tcg-op-vec.c | 4 ++--
3 files changed, 14 insertions(+), 14 deletions(-)
--
2.19.1
- [PATCH 0/2] avoid integer overflow,
Yifei Jiang <=