about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDuncan Ogilvie <mr.exodia.tpodt@gmail.com>2024-01-06 18:02:38 +0100
committerDuncan Ogilvie <mr.exodia.tpodt@gmail.com>2024-01-06 18:37:17 +0100
commit0b0de2cbd1a5949cd8819899169446c5cf524cc3 (patch)
tree060d114617d80f87d748098345d1cb4e2dde0b55
parentf2335970fea3670c261c162e65e72ebef2a4de2e (diff)
downloadfocaccia-miasm-0b0de2cbd1a5949cd8819899169446c5cf524cc3.tar.gz
focaccia-miasm-0b0de2cbd1a5949cd8819899169446c5cf524cc3.zip
Replace /!\ with [!] to fix a few warnings
miasm/expression/expression_helper.py:90:
SyntaxWarning: invalid escape sequence '\ '
-rw-r--r--miasm/analysis/debugging.py2
-rw-r--r--miasm/analysis/dse.py4
-rw-r--r--miasm/expression/expression.py4
-rw-r--r--miasm/expression/expression_helper.py4
-rw-r--r--miasm/expression/simplifications_common.py2
-rw-r--r--miasm/jitter/loader/utils.py2
-rw-r--r--miasm/loader/minidump.py4
7 files changed, 11 insertions, 11 deletions
diff --git a/miasm/analysis/debugging.py b/miasm/analysis/debugging.py
index f114d901..d5f59d49 100644
--- a/miasm/analysis/debugging.py
+++ b/miasm/analysis/debugging.py
@@ -377,7 +377,7 @@ class DebugCmd(cmd.Cmd, object):
 
         args = arg.split(" ")
         if args[-1].lower() not in ["on", "off"]:
-            self.print_warning("/!\ %s not in 'on' / 'off'" % args[-1])
+            self.print_warning("[!] %s not in 'on' / 'off'" % args[-1])
             return
         mode = args[-1].lower() == "on"
         d = {}
diff --git a/miasm/analysis/dse.py b/miasm/analysis/dse.py
index 5e6c4e8d..11674734 100644
--- a/miasm/analysis/dse.py
+++ b/miasm/analysis/dse.py
@@ -234,7 +234,7 @@ class DSEEngine(object):
     def handle(self, cur_addr):
         r"""Handle destination
         @cur_addr: Expr of the next address in concrete execution
-        /!\ cur_addr may be a loc_key
+        [!] cur_addr may be a loc_key
 
         In this method, self.symb is in the "just before branching" state
         """
@@ -475,7 +475,7 @@ class DSEEngine(object):
         @cpu: (optional) if set, update registers' value
         @mem: (optional) if set, update memory value
 
-        /!\ all current states will be loss.
+        [!] all current states will be loss.
         This function is usually called when states are no more synchronized
         (at the beginning, returning from an unstubbed syscall, ...)
         """
diff --git a/miasm/expression/expression.py b/miasm/expression/expression.py
index c507f19f..e5debb34 100644
--- a/miasm/expression/expression.py
+++ b/miasm/expression/expression.py
@@ -2146,7 +2146,7 @@ def expr_is_sNaN(expr):
 
 def expr_is_float_lower(op1, op2):
     """Return 1 on 1 bit if @op1 < @op2, 0 otherwise.
-    /!\ Assume @op1 and @op2 are not NaN
+    [!] Assume @op1 and @op2 are not NaN
     Comparison is the floating point one, defined in IEEE754
     """
     sign1, sign2 = op1.msb(), op2.msb()
@@ -2160,7 +2160,7 @@ def expr_is_float_lower(op1, op2):
 
 def expr_is_float_equal(op1, op2):
     """Return 1 on 1 bit if @op1 == @op2, 0 otherwise.
-    /!\ Assume @op1 and @op2 are not NaN
+    [!] Assume @op1 and @op2 are not NaN
     Comparison is the floating point one, defined in IEEE754
     """
     sign1, sign2 = op1.msb(), op2.msb()
diff --git a/miasm/expression/expression_helper.py b/miasm/expression/expression_helper.py
index 299e52e6..5bd2276d 100644
--- a/miasm/expression/expression_helper.py
+++ b/miasm/expression/expression_helper.py
@@ -89,7 +89,7 @@ op_propag_cst = ['+', '*', '^', '&', '|', '>>',
 def is_pure_int(e):
     """
     return True if expr is only composed with integers
-    /!\ ExprCond returns True is src1 and src2 are integers
+    [!] ExprCond returns True is src1 and src2 are integers
     """
     def modify_cond(e):
         if isinstance(e, m2_expr.ExprCond):
@@ -444,7 +444,7 @@ class ExprRandom(object):
         """Internal function for generating sub-expression according to options
         @size: (optional) Operation size
         @depth: (optional) Expression depth
-        /!\ @generated_elements is left modified
+        [!] @generated_elements is left modified
         """
         # Perfect tree handling
         if not cls.perfect_tree:
diff --git a/miasm/expression/simplifications_common.py b/miasm/expression/simplifications_common.py
index a1dce84e..9156ee67 100644
--- a/miasm/expression/simplifications_common.py
+++ b/miasm/expression/simplifications_common.py
@@ -1275,7 +1275,7 @@ def simp_cond_eq_zero(_, expr):
 
 def simp_sign_inf_zeroext(expr_s, expr):
     """
-    /!\ Ensure before: X.zeroExt(X.size) => X
+    [!] Ensure before: X.zeroExt(X.size) => X
 
     X.zeroExt() <s 0 => 0
     X.zeroExt() <=s 0 => X == 0
diff --git a/miasm/jitter/loader/utils.py b/miasm/jitter/loader/utils.py
index 73809141..7f913d76 100644
--- a/miasm/jitter/loader/utils.py
+++ b/miasm/jitter/loader/utils.py
@@ -65,7 +65,7 @@ class libimp(object):
         #    imp_ord_or_name = vm_get_str(imp_ord_or_name, 0x100)
         #    imp_ord_or_name = imp_ord_or_name[:imp_ord_or_name.find('\x00')]
 
-        #/!\ can have multiple dst ad
+        #[!] can have multiple dst ad
         if not imp_ord_or_name in self.lib_imp2dstad[libad]:
             self.lib_imp2dstad[libad][imp_ord_or_name] = set()
         if dst_ad is not None:
diff --git a/miasm/loader/minidump.py b/miasm/loader/minidump.py
index fbb7bde5..c16473b4 100644
--- a/miasm/loader/minidump.py
+++ b/miasm/loader/minidump.py
@@ -388,7 +388,7 @@ class Context_AMD64(CStruct):
         ("MxCsr", "u32"),
 
         # Segment & processor
-        # /!\ activation depends on multiple flags
+        # [!] activation depends on multiple flags
         ("SegCs", "u16", is_activated("CONTEXT_CONTROL")),
         ("SegDs", "u16", is_activated("CONTEXT_SEGMENTS")),
         ("SegEs", "u16", is_activated("CONTEXT_SEGMENTS")),
@@ -406,7 +406,7 @@ class Context_AMD64(CStruct):
         ("Dr7", "u64", is_activated("CONTEXT_DEBUG_REGISTERS")),
 
         # Integer registers
-        # /!\ activation depends on multiple flags
+        # [!] activation depends on multiple flags
         ("Rax", "u64", is_activated("CONTEXT_INTEGER")),
         ("Rcx", "u64", is_activated("CONTEXT_INTEGER")),
         ("Rdx", "u64", is_activated("CONTEXT_INTEGER")),