Author: Armin Rigo <[email protected]>
Branch:
Changeset: r97276:56e99531241f
Date: 2019-08-26 17:57 +0200
http://bitbucket.org/pypy/pypy/changeset/56e99531241f/
Log: Forbid calls to enable_siphash24() in sandbox or revdb mode
diff --git a/rpython/rlib/rsiphash.py b/rpython/rlib/rsiphash.py
--- a/rpython/rlib/rsiphash.py
+++ b/rpython/rlib/rsiphash.py
@@ -123,8 +123,11 @@
def compute_result_annotation(self):
translator = self.bookkeeper.annotator.translator
- if translator.config.translation.reverse_debugger:
- return # ignore and use the regular hash, with reverse-debugger
+ # you should not call enable_siphash24() when translating with the
+ # reverse-debugger, or with sandbox.
+ assert not translator.config.translation.reverse_debugger
+ assert not translator.config.translation.sandbox
+ #
if hasattr(translator, 'll_hash_string'):
assert translator.ll_hash_string == ll_hash_string_siphash24
else:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit