Test for NUL char in string in GENERAL STRING.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20012 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1999 - 2006 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1999 - 2007 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -532,16 +532,13 @@ check_fail_boolean(void)
|
|||||||
static int
|
static int
|
||||||
check_fail_general_string(void)
|
check_fail_general_string(void)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
struct test_case tests[] = {
|
struct test_case tests[] = {
|
||||||
|
{ NULL, 3, "A\x00B", "NUL char in string"}
|
||||||
};
|
};
|
||||||
int ntests = sizeof(tests) / sizeof(*tests);
|
int ntests = sizeof(tests) / sizeof(*tests);
|
||||||
|
|
||||||
return generic_decode_fail(tests, ntests, sizeof(heim_general_string),
|
return generic_decode_fail(tests, ntests, sizeof(heim_general_string),
|
||||||
(generic_decode)der_get_general_string);
|
(generic_decode)der_get_general_string);
|
||||||
#else
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Reference in New Issue
Block a user