1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-02-10 17:57:25 +03:00
Michal Privoznik 3506f1ecfd virTestCompareToFile: Don't access memory we don't own
After reading the contents of a file some cleanup is performed.
However, the check for it might access a byte outside of the
string - if the file is empty in the first place. Then strlen()
is zero.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2017-08-07 10:44:06 +02:00
..
2014-09-03 09:36:13 -06:00
2017-04-11 13:23:01 +02:00
2017-04-27 14:13:19 +02:00
2017-04-11 13:23:01 +02:00
2016-12-06 13:34:00 +01:00
2016-05-02 07:18:25 +02:00
2017-07-26 15:35:02 +02:00
2016-06-14 08:25:25 +02:00
2017-04-11 13:23:01 +02:00
2017-07-26 15:33:45 +02:00
2017-07-26 15:33:45 +02:00
2017-04-27 14:13:19 +02:00
2016-05-20 17:16:21 +02:00
2015-04-14 19:33:02 +02:00
2016-09-14 13:18:07 +02:00
2016-08-24 17:43:29 +02:00
2016-05-02 07:18:25 +02:00