Richard W.M. Jones 047cf7dcd2 daemon/link.c: Fix out of memory error when reading symlinks
Commit 0f54df53d2 ("build: Remove gnulib") introduced a bug when I
rewrote existing code that used gnulib areadlink().

A missing "continue" statement on the path where fstatat(2) failed
caused fall-through to the case where it tries to use malloc(3) on the
value from the uninitialized stat buf.  This caused a huge amount of
memory to be allocated, invoking the oom-killer inside the appliance.

Reported-by: Yongkui Guo
Fixes: commit 0f54df53d2
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1960217
2021-05-13 12:04:41 +01:00
2020-03-06 19:32:32 +00:00
2021-03-29 19:42:29 +01:00
2020-03-06 19:32:32 +00:00
2021-04-09 11:39:10 +01:00
2021-04-08 11:36:40 +01:00
2021-04-08 11:36:40 +01:00
2021-04-08 11:36:40 +01:00
2021-04-09 14:27:11 +01:00
2020-03-06 19:32:32 +00:00
2020-03-06 19:32:32 +00:00
2021-04-08 12:55:19 +01:00
2021-04-09 11:39:10 +01:00
2021-03-11 13:58:41 +00:00
2021-04-08 11:36:40 +01:00
2021-03-22 16:27:07 +00:00
2018-02-22 15:06:13 +00:00
2021-04-08 11:36:40 +01:00
2021-04-09 11:39:10 +01:00
2020-01-14 16:21:22 +01:00
2021-04-09 11:39:10 +01:00
2019-11-13 12:49:55 +00:00
2021-03-11 13:58:41 +00:00
2020-03-06 19:32:32 +00:00
2021-04-09 11:39:10 +01:00
2021-04-08 12:55:19 +01:00
2020-03-06 19:32:32 +00:00

Libguestfs is tools and a library for accessing and modifying guest
disk images.  For more information see the home page:

  http://libguestfs.org/

For discussion, development, patches, etc. please use the mailing
list:

  http://www.redhat.com/mailman/listinfo/libguestfs

To find out how to build libguestfs from source, read:

  docs/guestfs-building.pod
  http://libguestfs.org/guestfs-building.1.html
  man docs/guestfs-building.1

Copyright (C) 2009-2020 Red Hat Inc.

The library is distributed under the LGPLv2+.  The programs are
distributed under the GPLv2+.  Please see the files COPYING and
COPYING.LIB for full license information.  The examples are under a
very liberal license.
Languages
C 42.7%
OCaml 35.5%
Shell 7.1%
Makefile 4%
Perl 2.6%
Other 8%