Reject mixer definition lines too short to be valid.

This commit is contained in:
px4dev committed 2012-08-05 19:46:27 -07:00
1 parent 5c30722e77
commit 4f0875ab73
1 file changed
+3
+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;