You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ubsan: jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c:82:27: runtime error: signed integer overflow: 19998030 * 365 cannot be represented in type 'int'
#4704
Open
Cancelll opened this issue
Jun 30, 2021
· 0 comments
· May be fixed by #4914
readonly FLAGS=(
"-g -O1 -fsanitize=address,undefined -fno-sanitize-recover=undefined,address"
)
cmake -D CMAKE_C_FLAGS="${FLAG}" -D CMAKE_BUILD_TYPE=Debug -D CMAKE_INSTALL_PREFIX:PATH="${INSTALL_DIR}""${SRC_FOLDER}"
make
make install
Test case
newDate(20000000,0)
Output
jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c:82:27: runtime error: signed integer overflow: 19998030 * 365 cannot be represented in type 'int'
The text was updated successfully, but these errors were encountered:
batizdaniel
added a commit
to batizdaniel/jerryscript
that referenced
this issue
Dec 23, 2021
JerryScript revision
ccc1525
Build platform
Ubuntu 20.04.1 LTS (Linux 5.4.0-74-generic x86_64)
Build steps
Test case
Output
The text was updated successfully, but these errors were encountered: