Skip to content

Commit 9a32e64

Browse files
authored
Fix CodeQL issue (#6382)
Add explanation to CodeQL suppression. Change was pulled directly from nlohmann/json nlohmann/json#4362
1 parent 4cbb49f commit 9a32e64

File tree

1 file changed

+1
-1
lines changed
  • sdk/core/azure-core/inc/azure/core/internal/json

1 file changed

+1
-1
lines changed

sdk/core/azure-core/inc/azure/core/internal/json/json.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12307,7 +12307,7 @@ namespace Azure { namespace Core { namespace Json { namespace _internal { namesp
1230712307
locale's decimal point is used instead of `.` to work with the
1230812308
locale-dependent converters.
1230912309
*/
12310-
token_type scan_number() // lgtm [cpp/use-of-goto]
12310+
token_type scan_number() // lgtm [cpp/use-of-goto] `goto` is used in this function to implement the number-parsing state machine described above. By design, any finite input will eventually reach the "done" state or return token_type::parse_error. In each intermediate state, 1 byte of the input is appended to the token_buffer vector, and only the already initialized variables token_buffer, number_type, and error_message are manipulated.
1231112311
{
1231212312
// reset token_buffer to store the number's bytes
1231312313
reset();

0 commit comments

Comments
 (0)