Skip to content

Commit f8cfa72

Browse files
committed
std.cfg: Added support for C11 memcpy_s() and memcpy_s() functions.
1 parent daacc09 commit f8cfa72

1 file changed

Lines changed: 9 additions & 22 deletions

File tree

cfg/std.cfg

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2390,7 +2390,8 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
23902390
</arg>
23912391
</function>
23922392
<!-- void * memcpy(void *ct, const void *cs, size_t n);-->
2393-
<function name="memcpy,std::memcpy">
2393+
<!-- wchar_t * wmemcpy(wchar_t *ct, const wchar_t *cs, size_t n);-->
2394+
<function name="memcpy,std::memcpy,wmemcpy,std::wmemcpy">
23942395
<noreturn>false</noreturn>
23952396
<leak-ignore/>
23962397
<arg nr="1">
@@ -2408,46 +2409,32 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
24082409
<valid>0:</valid>
24092410
</arg>
24102411
</function>
2411-
<!-- wchar_t * wmemcpy(wchar_t *ct, const wchar_t *cs, size_t n);-->
2412-
<function name="wmemcpy,std::wmemcpy">
2412+
<!-- errno_t memcpy_s( void *restrict dest, rsize_t destsz, const void *restrict src, rsize_t count );-->
2413+
<!-- errno_t wmemcpy_s( wchar_t *restrict dest, rsize_t destsz, const wchar_t *restrict src, rsize_t count );-->
2414+
<function name="memcpy_s,wmemcpy_s">
24132415
<noreturn>false</noreturn>
24142416
<leak-ignore/>
24152417
<arg nr="1">
24162418
<not-null/>
2417-
<minsize type="argvalue" arg="3"/>
24182419
</arg>
24192420
<arg nr="2">
2420-
<not-null/>
2421-
<not-uninit/>
2422-
<minsize type="argvalue" arg="3"/>
2423-
</arg>
2424-
<arg nr="3">
24252421
<not-uninit/>
24262422
<not-bool/>
24272423
<valid>0:</valid>
24282424
</arg>
2429-
</function>
2430-
<!-- void * memmove(void *ct, const void *cs, size_t n); -->
2431-
<function name="memmove,std::memmove">
2432-
<noreturn>false</noreturn>
2433-
<leak-ignore/>
2434-
<arg nr="1">
2435-
<not-null/>
2436-
<minsize type="argvalue" arg="3"/>
2437-
</arg>
2438-
<arg nr="2">
2425+
<arg nr="3">
24392426
<not-null/>
24402427
<not-uninit/>
2441-
<minsize type="argvalue" arg="3"/>
24422428
</arg>
2443-
<arg nr="3">
2429+
<arg nr="4">
24442430
<not-uninit/>
24452431
<not-bool/>
24462432
<valid>0:</valid>
24472433
</arg>
24482434
</function>
2435+
<!-- void * memmove(void *ct, const void *cs, size_t n); -->
24492436
<!-- wchar_t * wmemmove(wchar_t *ct, const wchar_t *cs, size_t n); -->
2450-
<function name="wmemmove,std::wmemmove">
2437+
<function name="memmove,std::memmove,wmemmove,std::wmemmove">
24512438
<noreturn>false</noreturn>
24522439
<leak-ignore/>
24532440
<arg nr="1">

0 commit comments

Comments
 (0)