Skip to content

Commit 02bf20d

Browse files
committed
intentional UB with verbose
1 parent c59703d commit 02bf20d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/unit-tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ jobs:
103103
preload: LD_PRELOAD=$(gcc -print-file-name=libasan.so)
104104
meson_args: --config-settings=setup-args="-Db_sanitize=address,undefined"
105105
cflags_adds: -fno-sanitize-recover=all
106+
test_args: "-v"
106107
fail-fast: false
107108
name: ${{ matrix.name || format('ubuntu-latest {0}', matrix.env_file) }}
108109
env:

pandas/_libs/src/vendored/ujson/python/objToJSON.c

+3
Original file line numberDiff line numberDiff line change
@@ -2062,5 +2062,8 @@ PyObject *objToJSON(PyObject *Py_UNUSED(self), PyObject *args,
20622062
encoder->free(ret);
20632063
}
20642064

2065+
int myvar = INT_MAX;
2066+
printf("This value should overflow: %d\n", myvar + 1);
2067+
20652068
return newobj;
20662069
}

0 commit comments

Comments
 (0)