base16_encode() will fail to generate a terminating NUL if the length of the raw data is zero, since the loop calling sprintf() will never execute. Fix by explicitly terminating the result with a NUL. Reported-by: Marin Hannache <git@mareo.fr> Debugged-by: Marin Hannache <git@mareo.fr> Tested-by: Marin Hannache <git@mareo.fr> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
||
51 | 51 |
|
52 | 52 |
|
53 | 53 |
|
54 |
|
|
54 | 55 |
|
55 | 56 |
|
56 | 57 |
|
57 | 58 |
|
59 |
|
|
60 |
|
|
61 |
|
|
58 | 62 |
|
59 | 63 |
|
60 | 64 |
|