It can't. There's no easy way for strcpy(3) to know how many bytes have
been allocated for the destination buffer it is writing into. It's not
clear how to check bounds when you don't know what the bounds should be.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/