Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions cfg/windows.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2176,7 +2176,7 @@
<noreturn>false</noreturn>
<returnValue type="HRESULT"/>
<leak-ignore/>
<arg nr="1" direction="in">
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
Expand Down Expand Up @@ -3432,7 +3432,7 @@ HFONT CreateFont(
<arg nr="9" direction="in">
<not-uninit/>
</arg>
<arg nr="10" direction="in">
<arg nr="10">
<not-uninit/>
</arg>
<arg nr="11" direction="in">
Expand Down Expand Up @@ -3487,7 +3487,7 @@ HFONT CreateFont(
<arg nr="10" direction="in">
<not-uninit/>
</arg>
<arg nr="11" direction="in">
<arg nr="11">
<not-uninit/>
</arg>
<arg nr="12" direction="in">
Expand All @@ -3501,7 +3501,7 @@ HFONT CreateFont(
<noreturn>false</noreturn>
<returnValue type="BOOL"/>
<leak-ignore/>
<arg nr="1" direction="in">
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
Expand Down Expand Up @@ -4726,7 +4726,7 @@ HFONT CreateFont(
<returnValue type="HMODULE"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<arg nr="1">
<not-uninit/>
<strz/>
</arg>
Expand Down Expand Up @@ -4806,7 +4806,7 @@ HFONT CreateFont(
<function name="FreeLibraryAndExitThread">
<noreturn>true</noreturn>
<returnValue type="VOID"/>
<arg nr="1" direction="in">
<arg nr="1">
<not-uninit/>
<not-bool/>
</arg>
Expand All @@ -4821,7 +4821,7 @@ HFONT CreateFont(
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="DWORD"/>
<arg nr="1" direction="in">
<arg nr="1">
<not-uninit/>
<not-bool/>
</arg>
Expand Down Expand Up @@ -5646,7 +5646,7 @@ HFONT CreateFont(
<returnValue type="int"/>
<leak-ignore/>
<!-- The function does nothing (useful) if arg1 is nullptr or arg2 is nullptr or arg3 is 0 -->
<arg nr="1" direction="in">
<arg nr="1">
<not-null/>
</arg>
<arg nr="2" direction="out">
Expand Down Expand Up @@ -6791,7 +6791,7 @@ HFONT CreateFont(
<returnValue type="HWND"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
Expand Down
6 changes: 6 additions & 0 deletions test/testother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11291,6 +11291,12 @@ class TestOther : public TestFixture {
"}");
ASSERT_EQUALS("", errout.str());

check("_Bool a[10];\n" // #10350
"void foo() {\n"
" memcpy(&a[5], &a[4], 2u * sizeof(a[0]));\n"
"}");
ASSERT_EQUALS("[test.cpp:3]: (error) Overlapping read/write in memcpy() is undefined behavior\n", errout.str());

// wmemcpy
check("void foo() {\n"
" wchar_t a[10];\n"
Expand Down