std.cfg: Improved testing of std::system()
This commit is contained in:
parent
52cbbb0229
commit
57e35513b9
|
@ -6185,6 +6185,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
<arg nr="1" direction="in">
|
<arg nr="1" direction="in">
|
||||||
|
<!-- If a null pointer is given, command processor is checked for existence -->
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
</arg>
|
</arg>
|
||||||
</function>
|
</function>
|
||||||
|
|
|
@ -4356,6 +4356,13 @@ void uninitvar_system(void)
|
||||||
(void)system(c);
|
(void)system(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void nullPointer_system(char *c)
|
||||||
|
{
|
||||||
|
// If a null pointer is given, command processor is checked for existence
|
||||||
|
(void)system(NULL);
|
||||||
|
(void)system(c);
|
||||||
|
}
|
||||||
|
|
||||||
void uninitvar_zonetime(void)
|
void uninitvar_zonetime(void)
|
||||||
{
|
{
|
||||||
time_t *tp;
|
time_t *tp;
|
||||||
|
|
|
@ -3660,6 +3660,13 @@ void uninitvar_system(void)
|
||||||
(void)std::system(c);
|
(void)std::system(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void nullPointer_system(char *c)
|
||||||
|
{
|
||||||
|
// If a null pointer is given, command processor is checked for existence
|
||||||
|
(void)std::system(NULL);
|
||||||
|
(void)std::system(c);
|
||||||
|
}
|
||||||
|
|
||||||
void uninitvar_setw(void)
|
void uninitvar_setw(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in New Issue