Test results for the library
libtre
-
0.5.0
on
x86
Summary
Total tests
10
Passed / Failed tests
6 /
4
Verdict
Test Failed
Problem Summary
Received signal SEGV
4
Failed Tests (4)
[+]
Received signal SEGV
(4 problems)
regex.h
,
libtre.so.2.0.2
[+]
regexec
(
regex_t const*
preg
,
char const*
string
,
size_t
nmatch
,
regmatch_t*
pmatch
,
int
eflags
)
received signal SEGV (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stddef.h>
#include <regex.h>
#include <tre-config.h>
int
main(
int
argc
,
char
*
argv
[
]
)
{
void
*
value
= malloc(
256
);
regex_t
preg
= {.re_nsub =
4
, .value =
value
};
regmatch_t
pmatch
= {.rm_so =
1
, .rm_eo =
2
};
regexec
(
&
preg
,
"string"
,
4
,
&
pmatch
,
0
);
//target call
return
0
;
}
[+]
regnexec
(
regex_t const*
preg
,
char const*
string
,
size_t
len
,
size_t
nmatch
,
regmatch_t*
pmatch
,
int
eflags
)
received signal SEGV (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stddef.h>
#include <regex.h>
#include <tre-config.h>
int
main(
int
argc
,
char
*
argv
[
]
)
{
void
*
value
= malloc(
256
);
regex_t
preg
= {.re_nsub =
4
, .value =
value
};
char
const
string
[
]
= {
'A'
,
'B'
,
'C'
,
'D'
,
'\0'
};
regmatch_t
pmatch
= {.rm_so =
1
, .rm_eo =
2
};
regnexec
(
&
preg
,
string
,
4
,
4
,
&
pmatch
,
0
);
//target call
return
0
;
}
[+]
regwexec
(
regex_t const*
preg
,
wchar_t const*
string
,
size_t
nmatch
,
regmatch_t*
pmatch
,
int
eflags
)
received signal SEGV (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stddef.h>
#include <regex.h>
#include <tre-config.h>
int
main(
int
argc
,
char
*
argv
[
]
)
{
void
*
value
= malloc(
256
);
regex_t
preg
= {.re_nsub =
4
, .value =
value
};
regmatch_t
pmatch
= {.rm_so =
1
, .rm_eo =
2
};
regwexec
(
&
preg
,
L"string"
,
4
,
&
pmatch
,
0
);
//target call
return
0
;
}
[+]
regwnexec
(
regex_t const*
preg
,
wchar_t const*
string
,
size_t
len
,
size_t
nmatch
,
regmatch_t*
pmatch
,
int
eflags
)
received signal SEGV (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stddef.h>
#include <regex.h>
#include <tre-config.h>
int
main(
int
argc
,
char
*
argv
[
]
)
{
void
*
value
= malloc(
256
);
regex_t
preg
= {.re_nsub =
4
, .value =
value
};
wchar_t
const
string
[
]
= {
L'A'
,
L'B'
,
L'C'
,
L'D'
,
L'\0'
};
regmatch_t
pmatch
= {.rm_so =
1
, .rm_eo =
2
};
regwnexec
(
&
preg
,
string
,
4
,
4
,
&
pmatch
,
0
);
//target call
return
0
;
}
to the top
Generated on Sat Mar 20 19:06:58 2010 for
libtre
by
API-Sanity-Autotest
1.7