Skip to content

Commit 6636f39

Browse files
committed
Check array for NULL, fix gcov call
1 parent 14e97be commit 6636f39

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ img
33
travis
44
.git
55
.travis.yml
6+
7+
*.gcno
8+
*.gcda
9+
*.gcov
10+
*.so
11+
*.o

src/rum_arr_utils.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@
5151

5252
#define CHECKARRVALID(x) \
5353
do { \
54-
if (x) { \
54+
if (x == NULL) \
55+
ereport(ERROR, \
56+
(errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED), \
57+
errmsg("array must not be NULL"))); \
58+
else if (x) { \
5559
if (ARR_NDIM(x) != NDIM && ARR_NDIM(x) != 0) \
5660
ereport(ERROR, \
5761
(errcode(ERRCODE_ARRAY_SUBSCRIPT_ERROR), \

travis/run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ if test -f regression.diffs; then cat regression.diffs; fi
9999
if [ $status -ne 0 ]; then exit 1; fi
100100

101101
# generate *.gcov files
102-
gcov *.c *.h
102+
gcov src/*.c src/*.h
103103

104104

105105
set +ux

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy