Tuesday, January 21, 2014

strcpy buffer overflow

pstrcpy solves the problem. Maybe strcpy is just too dangerous to use.

Wednesday, January 15, 2014

Disk partitioning in Linux

OK, I'm too late to start doing this.

A disk provides a sector interface. A partition is an abstraction of a disk, simply to restrict accesses to a subset of its sectors. A file system builds on top of a partition, and provides block accesses.

Used gdisk. It reported "Secondary header is placed too early on the disk!". When that problem is automatically fixed.

Don't waste time fixing plus sign in kernel extra version.