std.cfg: Improved configuration of vfwprintf().
This commit is contained in:
parent
0db793fc51
commit
b847882994
|
@ -1921,7 +1921,7 @@
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
<formatstr/>
|
<formatstr/>
|
||||||
</arg>
|
</arg>
|
||||||
<arg nr="3"/>
|
<arg nr="3" direction="in"/>
|
||||||
</function>
|
</function>
|
||||||
<!-- int vfwprintf(FILE *stream, const wchar_t *format, va_list arg); -->
|
<!-- int vfwprintf(FILE *stream, const wchar_t *format, va_list arg); -->
|
||||||
<function name="vfwprintf,std::vfwprintf">
|
<function name="vfwprintf,std::vfwprintf">
|
||||||
|
@ -1933,9 +1933,11 @@
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
</arg>
|
</arg>
|
||||||
<arg nr="2" direction="in">
|
<arg nr="2" direction="in">
|
||||||
|
<not-null/>
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
|
<formatstr/>
|
||||||
</arg>
|
</arg>
|
||||||
<arg nr="3"/>
|
<arg nr="3" direction="in"/>
|
||||||
</function>
|
</function>
|
||||||
<!-- int fputc(int c, FILE *stream); -->
|
<!-- int fputc(int c, FILE *stream); -->
|
||||||
<function name="fputc,std::fputc">
|
<function name="fputc,std::fputc">
|
||||||
|
|
|
@ -1639,6 +1639,13 @@ void uninitvar_vfprintf(FILE *Stream, const char *Format, va_list Arg)
|
||||||
(void)vfprintf(Stream, Format, arg);
|
(void)vfprintf(Stream, Format, arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void nullPointer_vfwprintf(FILE *Stream, wchar_t *Format, va_list Arg)
|
||||||
|
{
|
||||||
|
// cppcheck-suppress nullPointer
|
||||||
|
(void)vfwprintf(Stream, NULL, Arg);
|
||||||
|
(void)vfwprintf(Stream, Format, Arg);
|
||||||
|
}
|
||||||
|
|
||||||
void uninitvar_vfwprintf(FILE *Stream, wchar_t *Format, va_list Arg)
|
void uninitvar_vfwprintf(FILE *Stream, wchar_t *Format, va_list Arg)
|
||||||
{
|
{
|
||||||
FILE *stream1, *stream2;
|
FILE *stream1, *stream2;
|
||||||
|
|
|
@ -95,10 +95,17 @@ void nullPointer_qsort(void *base, std::size_t n, std::size_t size, int (*cmp)(c
|
||||||
void nullPointer_vfprintf(FILE *Stream, const char *Format, va_list Arg)
|
void nullPointer_vfprintf(FILE *Stream, const char *Format, va_list Arg)
|
||||||
{
|
{
|
||||||
// cppcheck-suppress nullPointer
|
// cppcheck-suppress nullPointer
|
||||||
(void)std::vfprintf(Stream, NULL, Arg);
|
(void)std::vfprintf(Stream, nullptr, Arg);
|
||||||
(void)std::vfprintf(Stream, Format, Arg);
|
(void)std::vfprintf(Stream, Format, Arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void nullPointer_vfwprintf(FILE *Stream, wchar_t *Format, va_list Arg)
|
||||||
|
{
|
||||||
|
// cppcheck-suppress nullPointer
|
||||||
|
(void)std::vfwprintf(Stream, nullptr, Arg);
|
||||||
|
(void)std::vfwprintf(Stream, Format, Arg);
|
||||||
|
}
|
||||||
|
|
||||||
void *bufferAccessOutOfBounds_memchr(void *s, int c, size_t n)
|
void *bufferAccessOutOfBounds_memchr(void *s, int c, size_t n)
|
||||||
{
|
{
|
||||||
char buf[42]={0};
|
char buf[42]={0};
|
||||||
|
|
Loading…
Reference in New Issue