check buffer size before reading "char *" ...

check buffer size before reading "char *" to detect proc_cmdline quirks