std.cfg: Fix wprintf(), add comment to swprintf(). (#1729)

wprintf(): The format string must be initialized. So add `<not-uninit/>`
swprintf(): `<formatstr/>` should not be used because Microsoft uses the
same function with a different order of the arguments. Add comment to
document this in the library configuration also. See ticket
https://trac.cppcheck.net/ticket/4790
This commit is contained in:
Sebastian 2019-03-06 21:13:48 +01:00 committed by GitHub
parent f20936ed8a
commit 0bab9d778b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -5788,6 +5788,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<arg nr="1" direction="in">
<formatstr/>
<not-null/>
<not-uninit/>
</arg>
</function>
<!-- int sprintf(char *s, const char *format, ...); -->
@ -5842,6 +5843,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<valid>0:</valid>
</arg>
<arg nr="3" direction="in">
<!-- Due to different swprintf definitions "<formatstr/>" can not be used here. See https://trac.cppcheck.net/ticket/4790 -->
<not-null/>
<not-uninit/>
</arg>