Which line in this code is the source of an information disclosure vulnerability? why? how can it be fixed?

#include <stdio.h>

int main() {
int secretInts[] = {13, 98, 4, 21};
int publicInts[] = {1,2,3,4,5,6,7,8,9};
int input, i=0;
printf(“Enter the number of intergers you want to view: “);
scanf_s(“%d”, … Continue reading Which line in this code is the source of an information disclosure vulnerability? why? how can it be fixed?

Posted in C

A Compiler in Plain Text Also Plays Music

As a layperson reading about some branches of mathematics, it often seems like mathematicians are just people who really like to create and solve puzzles. And, knowing that computer science shares a lot of its fundamentals with mathematics, we can assume that most computer scientists are also puzzle-solvers as well. This latest project from [tom7] shows off his puzzle creating and solving skills with a readable file which is also a paper, which is also a compiler for C programs, which can also play music.

[tom7] started off with the instruction set for the Intel 8086 processor. Of the instructions …read more

Continue reading A Compiler in Plain Text Also Plays Music