Previously, if none of the URI parts requested existed in the passed URI, unparse_uri() would not touch the destination buffer at all; this could lead to use of uninitialized data. Fix by setting buf[0] = '\0' before unparsing whenever we have room to do so. Signed-off-by: Joshua Oreman <oremanj@rwcr.net> Signed-off-by: Marty Connor <mdc@etherboot.org>tags/v1.0.0
|
||
225 | 225 |
|
226 | 226 |
|
227 | 227 |
|
228 |
|
|
229 |
|
|
230 |
|
|
231 |
|
|
228 | 232 |
|
229 |
|
|
230 |
|
|
231 |
|
|
233 |
|
|
232 | 234 |
|
233 |
|
|
234 | 235 |
|
235 | 236 |
|
236 | 237 |
|