aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bruiser/bruiser.cpp1
-rw-r--r--bruiser/bruisercapstone.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/bruiser/bruiser.cpp b/bruiser/bruiser.cpp
index 936bd83..808010f 100644
--- a/bruiser/bruiser.cpp
+++ b/bruiser/bruiser.cpp
@@ -255,6 +255,7 @@ class PyExec {
if (Verbose) std::cout << BLUE << "length of list: " << list_length << NORMAL <<"\n";
for (int i = 0; i < list_length; ++i) {
PyObject* pybytes = PyList_GetItem(pValue, i);
+ //@DEVI-FIXIT-the weird '' we get for strings is because of repr().
PyObject* pyrepr = PyObject_Repr(pybytes);
PyObject* pyunicode = PyUnicode_AsEncodedString(pyrepr, "utf-8", "surrogateescape");
const char* dummy = PyBytes_AsString(pyunicode);
diff --git a/bruiser/bruisercapstone.c b/bruiser/bruisercapstone.c
index e65be3b..aea791d 100644
--- a/bruiser/bruisercapstone.c
+++ b/bruiser/bruisercapstone.c
@@ -178,7 +178,7 @@ int call_rewriter(int offset, size_t size, uint8_t* asm_code, const char* obj) {
// rewriting
asm_code[size_counter] = 0xe8, size_counter++;
uint8_t temp[4];
- //@DEVI-call cant be the last instructino in a function
+ //@DEVI-call cant be the last instructino in a function assuming its well-formed
int2byte(offset + insn[j].address, temp, 4);
for (int i = 0; i < 4; ++i) {asm_code[size_counter] = temp[i]; size_counter++;}
continue;