projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8a220d
)
unit1395: Fixed null pointer dereference on torture test
author
Dan Fandrich
<dan@coneharvesters.com>
Mon, 28 Apr 2014 15:11:37 +0000
(17:11 +0200)
committer
Dan Fandrich
<dan@coneharvesters.com>
Mon, 28 Apr 2014 15:14:46 +0000
(17:14 +0200)
tests/unit/unit1395.c
patch
|
blob
|
history
diff --git
a/tests/unit/unit1395.c
b/tests/unit/unit1395.c
index
8b0b0a0
..
0fdf147
100644
(file)
--- a/
tests/unit/unit1395.c
+++ b/
tests/unit/unit1395.c
@@
-66,6
+66,7
@@
UNITTEST_START
for(i=0; i < sizeof(pairs)/sizeof(pairs[0]); i++) {
char *out = Curl_dedotdotify((char *)pairs[i].input);
+ abort_unless(out != NULL, "returned NULL!");
if(strcmp(out, pairs[i].output)) {
fprintf(stderr, "Test %d: '%s' gave '%s' instead of '%s'\n",
@@
-81,7
+82,3
@@
UNITTEST_START
return fails;
UNITTEST_STOP
-
-
-
-