summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2024-11-03 12:07:08 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2024-11-03 12:07:08 (GMT)
commit26b247483301d117b2be9e4ff2763da847948096 (patch)
treecf5a226388419afc0c46a81905096e535edb1bb0
parente47dce53e761beecac4acd90ebf6dd0006a7b534 (diff)
Fix little typos and mistakes.
-rw-r--r--plugins/pychrysalide/analysis/scan/exprs/constants.c4
-rw-r--r--src/analysis/contents/memory.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/pychrysalide/analysis/scan/exprs/constants.c b/plugins/pychrysalide/analysis/scan/exprs/constants.c
index b11ac4c..adf35bb 100644
--- a/plugins/pychrysalide/analysis/scan/exprs/constants.c
+++ b/plugins/pychrysalide/analysis/scan/exprs/constants.c
@@ -51,7 +51,7 @@ bool define_literal_expression_value_type_constants(PyTypeObject *type)
values = PyDict_New();
- result = add_const_to_group(values, "LVT_BOOLEAN", LVT_BOOLEAN);
+ result = add_const_to_group(values, "BOOLEAN", LVT_BOOLEAN);
if (result) result = add_const_to_group(values, "SIGNED_INTEGER", LVT_SIGNED_INTEGER);
if (result) result = add_const_to_group(values, "UNSIGNED_INTEGER", LVT_UNSIGNED_INTEGER);
if (result) result = add_const_to_group(values, "STRING", LVT_STRING);
@@ -77,7 +77,7 @@ bool define_literal_expression_value_type_constants(PyTypeObject *type)
* Paramètres : arg = argument quelconque à tenter de convertir. *
* dst = destination des valeurs récupérées en cas de succès. *
* *
-* Description : Tente de convertir en constante LiteralValueType. *
+* Description : Tente de convertir en constante LiteralValueType. *
* *
* Retour : Bilan de l'opération, voire indications supplémentaires. *
* *
diff --git a/src/analysis/contents/memory.c b/src/analysis/contents/memory.c
index f7d2bd0..a3acc3b 100644
--- a/src/analysis/contents/memory.c
+++ b/src/analysis/contents/memory.c
@@ -34,7 +34,6 @@
#include "memory-int.h"
-#include "../content-int.h"
#include "../db/misc/rlestr.h"
#include "../storage/serialize-int.h"
#include "../../common/extstr.h"
@@ -337,6 +336,7 @@ bool g_memory_content_create(GMemoryContent *content, const bin_t *data, phys_t
if (allocated == NULL)
{
LOG_ERROR_N("malloc");
+ result = false;
goto exit;
}