mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
unit1395: Fixed null pointer dereference on torture test
This commit is contained in:
parent
b8a220d255
commit
970ce28c12
@ -66,6 +66,7 @@ UNITTEST_START
|
|||||||
|
|
||||||
for(i=0; i < sizeof(pairs)/sizeof(pairs[0]); i++) {
|
for(i=0; i < sizeof(pairs)/sizeof(pairs[0]); i++) {
|
||||||
char *out = Curl_dedotdotify((char *)pairs[i].input);
|
char *out = Curl_dedotdotify((char *)pairs[i].input);
|
||||||
|
abort_unless(out != NULL, "returned NULL!");
|
||||||
|
|
||||||
if(strcmp(out, pairs[i].output)) {
|
if(strcmp(out, pairs[i].output)) {
|
||||||
fprintf(stderr, "Test %d: '%s' gave '%s' instead of '%s'\n",
|
fprintf(stderr, "Test %d: '%s' gave '%s' instead of '%s'\n",
|
||||||
@ -81,7 +82,3 @@ UNITTEST_START
|
|||||||
return fails;
|
return fails;
|
||||||
|
|
||||||
UNITTEST_STOP
|
UNITTEST_STOP
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user