TienYoung / TianYang-BugReports

0 stars 0 forks source link

Bug Report: Using an unsafe function 'sscanf'. #1

Open TienYoung opened 3 months ago

TienYoung commented 3 months ago

Software SENG1000-C Programming Assignment f6

Bug Description In f6.cpp line 99 called an unsafe function 'sscanf' which is prevented by MSVC compiler.

Steps to Reproduce

  1. Create a new empty project in Visual Studio
  2. Add this file to the project.
  3. Build project.
  4. Get error from output.

Screen Shot Screenshot 2024-03-29 142358

Solution Add #pragma warning(disable: 4996) to the file.

TienYoung commented 3 months ago

Severity Due to this bug assignment f6 cannot be compiled in MSVC, which may get a low score in review. So, it is a high severity bug.