[PATCH] Junos output contains NULL bytes

Faidon Liambotis paravoid at debian.org
Thu Jul 2 14:13:30 UTC 2009

[I tried reporting this on Trac but both preview and submit were timing
out, while the rest of the site works]


It seems that rtconfig's output for Junos results in some NULL bytes
spanning in various lines of the output which effectively makes the
output unsuitable for use.

The attached patch fixes this bug; please carefully review, I think it
shouldn't introduce any buffer overflows but I can easily be wrong.

Both 4.8.5 and cruft-cleanout/r280 were returning garbaged output using
	@RtConfig import AS5408 AS112

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtconfig-junos-null.diff
Type: text/x-patch
Size: 893 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/irrtoolset/attachments/20090702/63a4315e/attachment.bin>

More information about the irrtoolset mailing list