Skip to content

Commit f67b729

Browse files
committed
Update query example (synced file)
1 parent 366d70b commit f67b729

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

csharp/ql/src/Security Features/CWE-020/RuntimeChecksBypassBad.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ public PersonBad(int age)
1616
[OnDeserializing]
1717
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
1818
{
19-
Age = info.GetInt32("age"); // $ Alert // BAD - write is unsafe
19+
Age = info.GetInt32("age"); // $ Alert[cs/serialization-check-bypass] // BAD - write is unsafe
2020
}
2121
}

0 commit comments

Comments
 (0)