code change to prevent crash in rt-attr.c

Steve Atkinson Steve.Atkinson at teligent.co.uk
Wed Jan 27 15:26:09 CET 2016


Hi,

We have a port of bird for a powerpc based Znyx (http://www.znyx.com) ZX6000 ATCA Layer 3 Switch.

We have discovered that the current mainline cores while processing rt-attr.c function rta_lookup(),  we have traced this back to a uninitialized stack variable in linux/netlink.c function nl_parse_route().

The addition of

memset(&ra, 0, sizeof(ra));

Just after the creation of ra,  was enough to prevent the crash.

Steve

PS Apologize for not attaching a patch, but our code tree has many unwanted changes port to ZX6000 which is stuck on gcc-2.95.3 and glibc-2.1.3

=======================
Steve Atkinson CEng BEng(hon) MIET
Teligent Ltd
2 Kings Hill Avenue
West Malling
Kent
ME19 4AQ

Telephone: +44(0) 1732 879 655    Fax: +44 (0) 1732 879601

[YourHomePhoneIsAnywhere]

The information in this email is confidential. The contents may not be disclosed or used by anyone other than the addressee. If you are not the intended recipient, please notify the sender immediately at the above address. The sender cannot accept any responsibility for the accuracy or completeness of this message as it has been transmitted over a public network.

[BSI]

Teligent Ltd is registered in England and Wales, registration number 2893478.  Registered office Lion House, Red Lion Street, London WC1R 4GB.  VAT registration GB639938577.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20160127/5309938f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 35962 bytes
Desc: image001.jpg
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20160127/5309938f/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 3388 bytes
Desc: image002.png
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20160127/5309938f/attachment.png>


More information about the Bird-users mailing list