Skip to content

Commit d5a34a0

Browse files
committed
translation/Parser: reject duplicate CACHE_TAGs
1 parent 00fb5a6 commit d5a34a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/translation/Parser.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3841,6 +3841,9 @@ TranslateParser::HandleRegularPacket(TranslationCommand command,
38413841
return;
38423842
}
38433843

3844+
if (response.cache_tags.Contains(string_payload.data()))
3845+
throw std::runtime_error{"duplicate CACHE_TAG packet"};
3846+
38443847
response.cache_tags.Add(alloc, string_payload.data());
38453848
#else
38463849
// ignore

0 commit comments

Comments
 (0)