CRLF line terminators are allowed in scripts; the carriage return is simply interpreted as trailing whitespace and so is ignored. This fails on lines containing script labels, since the label-finding code checks for a line containing only the ":" marker and the label itself (without any trailing whitespace). Fix by allowing a label to be terminated by either a NUL or a whitespace character. Reported-by: Bovey Christian <Christian.Bovey@chuv.ch> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
221 |
|
221 |
|
222 |
|
222 |
|
223 |
|
223 |
|
|
224 |
|
|
224 |
|
225 |
|
225 |
|
226 |
|
226 |
|
227 |
|
227 |
|
|
|
|
228 |
|
|
|
229 |
|
|
|
230 |
|
|
|
231 |
|
|
|
232 |
|
|
228 |
|
233 |
|
|
234 |
|
|
229 |
|
235 |
|
230 |
|
236 |
|
231 |
|
237 |
|