question

RajkumarKamsani-2294 avatar image
0 Votes"
RajkumarKamsani-2294 asked RoyLi-MSFT edited

Is there any method to report error, if sprintf and other library functions being used in driver codebase.

Hello All,

I have driver code with few C/C++ runtime libraries like sprintf(). Due to inclusion of strsafe.h file, compiler is not throwing any error. I can replace sprintf() with RtlStringCchPrintfA().

But I would like add a check, if sprinf() is being used in driver code again, compiler should generate the error. Please let me know, how to achieve this?

Best Regards,
Raj

not-supported
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@RajkumarKamsani-2294 Currently, Microsoft Q&A supports the products listed over here: supported topics (more to be added later on). Your question about driver is not supported yet now. You could ask about this in another forum.

0 Votes 0 ·

0 Answers