summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OpcodeDecoding.cpp
diff options
context:
space:
mode:
authorlioncash <mathew1800@gmail.com>2014-09-05 14:34:46 -0400
committerlioncash <mathew1800@gmail.com>2014-09-05 15:12:17 -0400
commit3e0c04a83e99847e5e846ce8c198bb8a5d26343f (patch)
tree5ec2cc92a07a800a7a9ed82926df7a0c51c6deae /Source/Core/VideoCommon/OpcodeDecoding.cpp
parent0576046fdd6bccc61b30174f04207b5191280f6f (diff)
Common: Fix a potential infinite loop in ReplaceAll
Prior to this change, it was possible to cause an infinite loop by making the string to be replaced and the replacing string the same thing. e.g. std::string some_str = "test"; ReplaceAll(some_str, "test", "test"); This also changes the replacing in a way that doesn't require starting from the beginning of the string on each replacement iteration.
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
0 files changed, 0 insertions, 0 deletions