diff options
author | Jim Meyering <meyering@redhat.com> | 2009-07-01 16:09:33 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-07-01 18:42:19 +0200 |
commit | f20854ec61eef1aea313920f0cf193a78c1a9219 (patch) | |
tree | 41f3dd9bc1ee22ad88d6e576e19ec0c33c74157d /daemon | |
parent | 99e28249d52ca5495b636e14ae3e4387ee62c8fe (diff) | |
download | libguestfs-f20854ec61eef1aea313920f0cf193a78c1a9219.tar.gz libguestfs-f20854ec61eef1aea313920f0cf193a78c1a9219.tar.xz libguestfs-f20854ec61eef1aea313920f0cf193a78c1a9219.zip |
fish: handle some out-of-memory conditions
* fish/destpaths.c (xalloc_oversized): Define.
(complete_dest_paths_generator): Use size_t as type for a few
variables, rather than int.
Don't deref NULL or undef on failed heap alloc.
Don't leak on failed realloc.
Detect theoretical overflow when count_strings returns a very
large number of strings.
Handle asprintf failure.
(APPEND_STRS_AND_FREE): Rewrite as do {...}while(0), so that each use
can/must be followed by a semicolon. Better for auto-formatters.
Diffstat (limited to 'daemon')
0 files changed, 0 insertions, 0 deletions