Skip to content
Snippets Groups Projects
Commit a4af739f authored by Arman Arethna's avatar Arman Arethna
Browse files

vuln-3 change

parent d7494e27
Branches
No related tags found
No related merge requests found
Pipeline #57805 passed
push 10 push 10
store value *
load value \ No newline at end of file
store value
\ No newline at end of file
...@@ -84,8 +84,8 @@ static node_t *node_new(const char *varname, const value_t value){ ...@@ -84,8 +84,8 @@ static node_t *node_new(const char *varname, const value_t value){
replaces p's value with that from q and frees q */ replaces p's value with that from q and frees q */
static void node_edit_value(node_t * p, node_t *q){ static void node_edit_value(node_t * p, node_t *q){
p->value = q->value; p->value = q->value;
// free(q->varname); free(q->varname);
// free(q); free(q);
} }
static void node_free(node_t *p){ static void node_free(node_t *p){
...@@ -503,7 +503,7 @@ static int execute(void){ ...@@ -503,7 +503,7 @@ static int execute(void){
return -1; return -1;
} }
if (stack_size() < 2){ if (stack_size() < 1){
debug_printf("Mult from insufficient stack\n"); debug_printf("Mult from insufficient stack\n");
return -1; return -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment