Reject mixer definition lines too short to be valid.

This commit is contained in:
px4dev
2012-08-05 19:46:27 -07:00
parent 5c30722e77
commit 4f0875ab73
+3
View File
@@ -187,6 +187,9 @@ mixer_getline(int fd, char *line, unsigned maxlen)
/* line termination */
if (c == '\n') {
/* ignore malformed lines */
if ((p - line) < 4)
break;
if (line[1] != ':')
break;