|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 17/17] util: fix annotation of __wcstok_r
__wcstok_r() indirectly write in Buffer
(*Context = Buffer, and later *Context = End) so it
should be annotated as _Inout_opt_.
Signed-off-by: Césaire Mounah <cesaire.mounah@xxxxxxxxxx>
---
src/xeniface/util.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xeniface/util.h b/src/xeniface/util.h
index 77daa07..79aee6d 100644
--- a/src/xeniface/util.h
+++ b/src/xeniface/util.h
@@ -317,7 +317,7 @@ __strtok_r(
static FORCEINLINE PWSTR
__wcstok_r(
- _In_opt_ PWSTR Buffer,
+ _Inout_opt_ PWSTR Buffer,
_In_ PWSTR Delimiter,
_When_(Buffer != NULL, _Outptr_)
_When_(Buffer == NULL, _Inout_)
--
2.55.0.windows.5
--
Césaire Mounah | Vates Windows Guest Tools Engineer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |