« first day (4421 days earlier)      last day (531 days later) » 

11:01 AM
 
 
9 hours later…
8:25 PM
Jeez I am often quite impressed by how security analysts or pentesters think out of the box:
      int copySize = atoi(argv[1]);

      if(copySize > MAX_BUF_SZ) {
        puts("copySize too large");
        return –1;
      }

      memcpy(d,s,copySize*sizeof(int));
if copySize has a very big negative value you end up overwriting the adjacent memory space. It gets even worse, I think, because the last argument of memcpy is of type size_t not some signed crap
Nothing very fancy here. I know. But I find this absolutely fascinating. Especially for such a mundane and naive code snippet
 
8:48 PM
 
@LandonZeKepitelOfGreytBritn always treat inputs as if they were nuclear and radioactive. Because they are
 

« first day (4421 days earlier)      last day (531 days later) »