commit | bffb68b6c28a942d5341a912f5a11894f8bcf243 | [log] [tgz] |
---|---|---|
author | Hangbin Liu <liuhangbin@gmail.com> | Thu Sep 08 10:26:57 2016 +0800 |
committer | Stephen Hemminger <stephen@networkplumber.org> | Tue Sep 20 09:52:35 2016 -0700 |
tree | c44032f11b9d20ae6f4674245007929f826dba9d | |
parent | f20f5f79909fdc6327fcd015a3850645a236729d [diff] |
ip route: check ftell, fseek return value ftell() may return -1 in error case, which is not handled and therefore pass a negative offset to fseek(). The return code of fseek() is also not checked. Reported-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>