#640023 partimage: missing /etc/mtab results in wrong error plus potential buffer overrun

Package:
partimage
Source:
partimage
Description:
backup partitions into a compressed image file
Submitter:
"Nagy Elemer Karoly"
Date:
2011-09-01 16:00:19 UTC
Severity:
normal
#640023#5
Date:
2011-09-01 15:50:17 UTC
From:
To:
How to reproduce:
- Reboot in an environment without /etc/mtab
- Try to save a partition without --allowmnt

Cause of problem:
- src/client/misc.cpp isMounted() returns -1 when /etc/mtab is not found
- src/client/misc.cpp systemChecks() checks for false - anything else is interpreted as "partition
mounted".
- szMountPoint is printed with msgBoxContinueCancel without being nulled and without being touched
by isMounted()

Workaround:
- Run partimage with --allowmnt (-m)