History log of /freebsd/usr.sbin/fstyp/ntfs.c (Results 1 – 15 of 15)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 878ede1a 28-Oct-2024 Mark Johnston <markj@FreeBSD.org>

fstyp: Fix some memory safety bugs

In the hammer2 label reader, make sure to check for a NULL return from
read_buf().

In the NTFS label reader,
- Avoid an infinite loop if a record length is 0.
- A

fstyp: Fix some memory safety bugs

In the hammer2 label reader, make sure to check for a NULL return from
read_buf().

In the NTFS label reader,
- Avoid an infinite loop if a record length is 0.
- Avoid walking past the end of the buffer.
- When a label is found, avoid reading past the end of the buffer.

PR: 278281
Reviewed by: emaste
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D47292

show more ...


Revision tags: release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0
# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0
# 3513df4b 02-Nov-2021 Ed Maste <emaste@FreeBSD.org>

fstyp: fix build WITHOUT_ICONV

Reported by: Michael Dexter, Build Option Survey
Sponsored by: The FreeBSD Foundation


Revision tags: release/13.0.0, release/12.2.0, release/11.4.0
# 350bfebb 29-Dec-2019 Adrian Chadd <adrian@FreeBSD.org>

Make this compile under external gcc toolchain if WITH_ICONV isn't defined.

This quietens a bunch of unused variable warnings that are treated as errors.


# 5ab1cb52 23-Dec-2019 Conrad Meyer <cem@FreeBSD.org>

fstyp(8): Fix WITHOUT_ICONV build

Reported by: olivier


# ec80d2ee 23-Dec-2019 Conrad Meyer <cem@FreeBSD.org>

fstyp(8): Use iconv(3) to convert NTFS vol labels correctly

Rather than hackily extracting only the ASCII subset of UTF-16LE, go ahead
and convert the label to the user's locale correctly.


Revision tags: release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0, release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0
# 98e0ffae 27-May-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge sync of head


# 51dd214c 19-Jan-2015 Enji Cooper <ngie@FreeBSD.org>

MFhead @ r277403


# d899be7d 19-Jan-2015 Glen Barber <gjb@FreeBSD.org>

Reintegrate head: r274132-r277384

Sponsored by: The FreeBSD Foundation


# 8f0ea33f 13-Jan-2015 Glen Barber <gjb@FreeBSD.org>

Reintegrate head revisions r273096-r277147

Sponsored by: The FreeBSD Foundation


# 3d2b0910 05-Jan-2015 Edward Tomasz Napierala <trasz@FreeBSD.org>

Fix memory leaks.

CID: 1258582, 1258583.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# b28def21 05-Jan-2015 Edward Tomasz Napierala <trasz@FreeBSD.org>

Remove leftovers.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# d455aba8 10-Dec-2014 Enji Cooper <ngie@FreeBSD.org>

MFhead @ r275688


# 377af4f1 10-Dec-2014 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r274961 through r275684.


# be3a49ee 10-Dec-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add fstyp(8). This utility, named after its SVR4 counterpart, detects
filesystems. It differs from file(1) in that it gives machine-parseable
output, it outputs filesystem labels, doesn't get confu

Add fstyp(8). This utility, named after its SVR4 counterpart, detects
filesystems. It differs from file(1) in that it gives machine-parseable
output, it outputs filesystem labels, doesn't get confused by other
formats metadata, and runs in Capsicum sandbox.

Differential Revision: https://reviews.freebsd.org/D1255
Relnotes: yes
Sponsored by: The FreeBSD Foundation

show more ...