eepro100: Prevent two endless loops #5

Closed
ghost wants to merge 1 commits from opensuse-2.1 into opensuse-2.1

1 Commits

Author SHA1 Message Date
Stefan Weil
723e739dea eepro100: Prevent two endless loops
http://lists.nongnu.org/archive/html/qemu-devel/2015-11/msg04592.html
shows an example how an endless loop in function action_command can
be achieved.

During my code review, I noticed a 2nd case which can result in an
endless loop.

Reported-by: Qinghao Tang <luodalongde@gmail.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Jason Wang <jasowang@redhat.com>
(cherry picked from commit 00837731d2)
(CYL: BSC#956829 CVE-2015-8345)
Signed-off-by: Chunyan Liu <cyliu@suse.com>
2015-12-02 13:21:48 +08:00