ntfs-3g/ntfsprogs
Jean-Pierre André d587ff54f9 Fixed segmentation fault on empty $LogFile in ntfsrecover
ntfsrecover -f -v <log file> receives a SIGSEGV because of trying to
read memory outside allocated buffer because of no sanity checks on
restart page header values. This happens on an empty $LogFile because
of no basic checks present. Attached patch adds basic checks similar
to those inside logfile library and allows tool to exit with more
suitable message.
(contributed by Rakesh Pandit)
2016-05-04 09:24:51 +02:00
..
attrdef.c Update version to 2.0.0, update NEWS, update mkntfs man page and mkntfs itself. 2006-12-13 10:46:49 +00:00
attrdef.h Update version to 2.0.0, update NEWS, update mkntfs man page and mkntfs itself. 2006-12-13 10:46:49 +00:00
boot.c - mkntfs: Use Vista $Boot rather than XP one. (Anton) 2007-03-06 15:44:30 +00:00
boot.h - mkntfs: Use Vista $Boot rather than XP one. (Anton) 2007-03-06 15:44:30 +00:00
cluster.c Added a summary of inodes found by ntfscluster 2014-03-11 10:51:47 +01:00
cluster.h Restored 'local' includes for all the ntfsprogs instead of using system includes (e.g. #include "yada.h" instead of #include <ntfs-3g/yada.h>). 2010-12-16 09:59:42 +01:00
list.h Prefix all functions and macros in ntfsprogs/list.h with 'ntfs_/NTFS_'. 2012-01-13 13:37:33 +01:00
Makefile.am Adapted secaudit and usermap (now ntfssecaudit and ntfsusermap) to ntfsprogs 2016-04-07 09:20:23 +02:00
mkntfs.8.in Mentioned the starting sector when it overflows in mkntfs 2015-09-30 08:25:25 +02:00
mkntfs.c Fix compiler warnings about mismatching printf format / argument type. 2016-02-16 09:30:49 +01:00
ntfscat.8.in Fixed dead http links in ntfsprogs manuals (Daniel Baumann) 2011-07-05 12:17:30 +02:00
ntfscat.c Merge endianness fixes. 2016-01-28 09:22:42 +01:00
ntfscat.h Merge remote branch 'linux-ntfs/libntfs-3g_port-v2_0_0' into PERMISSION_HANDLING_BRANCH 2010-12-17 09:04:01 +01:00
ntfsck.c ntfsck.c: Fix comparing le32 values as u32. 2016-01-27 15:23:13 +01:00
ntfsclone.8.in Added clarification about creating a partition to the ntfsclone manual 2016-04-06 09:27:07 +02:00
ntfsclone.c Fixed indentation in ntfsclone help text (cosmetic) 2016-04-06 11:09:35 +02:00
ntfscluster.8.in Fixed dead http links in ntfsprogs manuals (Daniel Baumann) 2011-07-05 12:17:30 +02:00
ntfscluster.c Translated directory separators when running ntfscluster on Windows 2016-04-06 10:11:08 +02:00
ntfscluster.h Merge remote branch 'linux-ntfs/libntfs-3g_port-v2_0_0' into PERMISSION_HANDLING_BRANCH 2010-12-17 09:04:01 +01:00
ntfscmp.8.in Fixed dead http links in ntfsprogs manuals (Daniel Baumann) 2011-07-05 12:17:30 +02:00
ntfscmp.c ntfscmp.c: Fix missing byteswap of little-endian attribute type value. 2016-01-28 09:11:55 +01:00
ntfscp.8.in Added option --min-fragments to reduce fragmentation in ntfscp 2014-03-11 09:24:34 +01:00
ntfscp.c Merge endianness fixes. 2016-01-28 09:22:42 +01:00
ntfsdecrypt.8.in Added a manual entry for ntfsdecrypt 2014-06-25 12:46:36 +02:00
ntfsdecrypt.c Merge endianness fixes. 2016-01-28 09:22:42 +01:00
ntfsdump_logfile.c Moved general declarations from ntfsrecover.h to logfile.h 2016-04-06 11:03:31 +02:00
ntfsfallocate.8.in Added a manual entry for ntfsfallocate 2014-06-25 12:48:35 +02:00
ntfsfallocate.c Merge endianness fixes. 2016-01-28 09:22:42 +01:00
ntfsfix.8.in Updated copyright claims 2014-02-16 18:25:09 +01:00
ntfsfix.c Merge endianness fixes. 2016-01-28 09:22:42 +01:00
ntfsinfo.8.in Fixed dead http links in ntfsprogs manuals (Daniel Baumann) 2011-07-05 12:17:30 +02:00
ntfsinfo.c Merge endianness fixes. 2016-01-28 09:22:42 +01:00
ntfslabel.8.in Updated copyright claims 2014-02-16 18:25:09 +01:00
ntfslabel.c ntfslabel.c: Fix incorrect label buffer being NULL-terminated. 2016-02-08 18:32:24 +01:00
ntfsls.8.in Fixed dead http links in ntfsprogs manuals (Daniel Baumann) 2011-07-05 12:17:30 +02:00
ntfsls.c Rename legacy MS_* flags for ntfs_mount with NTFS_MNT_* flags. 2012-11-07 16:29:48 +01:00
ntfsmftalloc.c Fix incorrect usage of native/little-endian types, signed types, etc. 2015-12-21 23:55:31 +01:00
ntfsmove.c Fix compilation errors on OpenIndiana caused by missing limit macros. 2016-02-16 20:43:00 +01:00
ntfsmove.h Merge remote branch 'linux-ntfs/libntfs-3g_port-v2_0_0' into PERMISSION_HANDLING_BRANCH 2010-12-17 09:04:01 +01:00
ntfsprogs.8.in Enabled new manual entries for ntfsprogs utilities 2014-06-25 12:50:45 +02:00
ntfsrecover.8.in Implemented recovery of updates committed by Windows 2015-11-09 13:18:58 +01:00
ntfsrecover.c Fixed segmentation fault on empty $LogFile in ntfsrecover 2016-05-04 09:24:51 +02:00
ntfsrecover.h Moved general declarations from ntfsrecover.h to logfile.h 2016-04-06 11:03:31 +02:00
ntfsresize.8.in Fixed a spelling error in ntfsresize manual (cosmetic) 2016-04-06 11:07:30 +02:00
ntfsresize.c Closed the volume when a resizing is done 2016-02-12 17:13:21 +01:00
ntfssecaudit.8.in Adapted secaudit and usermap (now ntfssecaudit and ntfsusermap) to ntfsprogs 2016-04-07 09:20:23 +02:00
ntfssecaudit.c Fixed a missing "break" in ntfssecaudit.c 2016-05-04 09:19:39 +02:00
ntfstruncate.8.in Added a manual entry for ntfstruncate 2014-06-25 12:47:33 +02:00
ntfstruncate.c ntfstruncate.c: Fix mixed endianness usage of variable 'i'. 2016-01-26 10:28:38 +01:00
ntfsundelete.8.in Output the modification time when scanning files by ntfsundelete 2013-07-30 11:00:46 +02:00
ntfsundelete.c Fix compiler warnings about mismatching printf format / argument type. 2016-02-16 09:30:49 +01:00
ntfsundelete.h Prefix all functions and macros in ntfsprogs/list.h with 'ntfs_/NTFS_'. 2012-01-13 13:37:33 +01:00
ntfsusermap.8.in Adapted secaudit and usermap (now ntfssecaudit and ntfsusermap) to ntfsprogs 2016-04-07 09:20:23 +02:00
ntfsusermap.c Adapted secaudit and usermap (now ntfssecaudit and ntfsusermap) to ntfsprogs 2016-04-07 09:20:23 +02:00
ntfswipe.8.in Added clarifications about several options to the ntfswipe manual 2015-04-17 09:26:59 +02:00
ntfswipe.c Fix compilation errors on OpenIndiana caused by missing limit macros. 2016-02-16 20:43:00 +01:00
ntfswipe.h Developped an option --unused-fast for faster ntfswipe 2014-09-02 09:55:53 +02:00
playlog.c Moved general declarations from ntfsrecover.h to logfile.h 2016-04-06 11:03:31 +02:00
sd.c Fix incorrect usage of native/little-endian types, signed types, etc. 2015-12-21 23:55:31 +01:00
sd.h Merge remote branch 'linux-ntfs/libntfs-3g_port-v2_0_0' into PERMISSION_HANDLING_BRANCH 2010-12-17 09:04:01 +01:00
utils.c Fix compiler warnings about mismatching printf format / argument type. 2016-02-16 09:30:49 +01:00
utils.h ntfsprogs Builds on Windows use macroes to translate printing formats, 2015-09-30 09:08:35 +02:00