This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Calculate PI using my own programming language: Stout | |
author = Andrea Fioraldi | |
copyright = Copyright 2017, Andrea Fioraldi | |
license = MIT | |
mail = andreafioraldi@gmail.com | |
*/ | |
use IO; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
An expression solver based on the reverse polish notation written in Stout. | |
author = Andrea Fioraldi | |
copyright = Copyright 2017, Andrea Fioraldi | |
license = MIT | |
mail = andreafioraldi@gmail.com | |
*/ | |
library IO; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add to .bashrc | |
# You're welcome | |
function soocat { | |
socat tcp-l:${2},reuseaddr,fork EXEC:${1} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" | |
echo "The script is in the directory $SCRIPTPATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
function print(text) { | |
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' '); | |
console.log(text); | |
var element = document.getElementById('output'); | |
if (element) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi, | |
I found a critical bug in libmirage 3.2.2, specifically in the CSO filter. | |
The file content that triggers the bug (PoV) is the following (344 bytes in hex): | |
43 49 53 4F 00 00 00 00 FF 00 00 00 00 00 00 FF | |
FF 00 00 00 00 30 00 00 00 00 00 00 61 61 00 00 | |
2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A | |
2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A | |
2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi, | |
I found a Null Pointer Dereference in libmirage 3.2.2, specifically in the NRG parser. | |
I'm writing you directly here and not in the public bug tracker cause I'm not sure if this is a security issue or not. | |
The content of the file that triggers the bug is the following (12 bytes in hex): | |
02 80 F4 4B 4E 45 52 4F 00 00 00 04 | |
The issue appears at the memcpy at line 103 (mirage_parser_nrg_build_block_index routine) of images/image-nrg/parser.c: | |
/* Populate block index */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This: | |
if (*cmd && *inFile) { | |
sprintf(cmd, | |
"strings %s | grep '^[0-9a-fA-F]*$' | awk '{ if (length($1) == 72) print; }'", | |
inFile); | |
system(cmd); | |
exit(0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/accel/tcg/tcg-runtime.c b/accel/tcg/tcg-runtime.c | |
index d0d44844..d10d51ce 100644 | |
--- a/accel/tcg/tcg-runtime.c | |
+++ b/accel/tcg/tcg-runtime.c | |
@@ -167,3 +167,29 @@ void HELPER(exit_atomic)(CPUArchState *env) | |
{ | |
cpu_loop_exit_atomic(ENV_GET_CPU(env), GETPC()); | |
} | |
+ | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/linux-user/i386/cpu_loop.c b/linux-user/i386/cpu_loop.c | |
index 51cfa006..510e4cbf 100644 | |
--- a/linux-user/i386/cpu_loop.c | |
+++ b/linux-user/i386/cpu_loop.c | |
@@ -80,6 +80,8 @@ static void set_idt(int n, unsigned int dpl) | |
} | |
#endif | |
+#include "../patches/afl-qemu-common.h" | |
+ |
OlderNewer