Commit 3875c677 authored by Julien Signoles's avatar Julien Signoles
Browse files

comment vulnerabilities

parent 87f54100
Pipeline #39629 failed with stage
in 70 minutes and 19 seconds
......@@ -20,11 +20,14 @@ static void usage(char *argv0)
{
printf("Usage: %s file.der\n", argv0);
}
int main(int argc, char *argv[])
{
// u8 buf[ASN1_MAX_BUFFER_SIZE];
// u8 buf[ASN1_MAX_BUFFER_SIZE/64];
u8 *buf = malloc(sizeof(u8) * ASN1_MAX_BUFFER_SIZE/64);
u8 buf[ASN1_MAX_BUFFER_SIZE];
// stack overflow
//u8 buf[ASN1_MAX_BUFFER_SIZE/64];
// heap overflow
//u8 *buf = malloc(sizeof(u8) * ASN1_MAX_BUFFER_SIZE/64);
off_t pos, offset = 0;
char *path = argv[1];
u16 rem, copied, eaten;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment