OpenBSD CVS

CVS log for src/usr.bin/file/Attic/funcs.c


[BACK] Up to [local] / src / usr.bin / file

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.9, Fri Apr 24 16:24:11 2015 UTC (9 years ago) by nicm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED

New implementation of the file(1) utility. This is a simplified,
modernised version with a nearly complete magic(5) parser but omits some
of the complex builtin tests (notably ELF) and has a reduced set of
options.

ok deraadt

Revision 1.8 / (download) - annotate - [select for diffs], Sun May 18 17:50:11 2014 UTC (10 years ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.7: +6 -1 lines
Diff to previous 1.7 (colored)

use reallocarray
okay ian@, chl@

Revision 1.7 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:37 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.6: +1 -5 lines
Diff to previous 1.6 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.6 / (download) - annotate - [select for diffs], Fri Apr 24 18:54:34 2009 UTC (15 years ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.5: +92 -138 lines
Diff to previous 1.5 (colored)

file update to 4.24

The '-i' switch is now enabled so file(1) can output mime type strings.

ok ian@
builk ports build test on amd64 by jasper@

ok ray@ gilles@ on a almost identical diff
builk ports build test on sparc64 on this almost identical diff by ajacoutot@
also tested by landry@

Revision 1.5 / (download) - annotate - [select for diffs], Thu May 8 01:40:56 2008 UTC (16 years ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.4: +205 -33 lines
Diff to previous 1.4 (colored)

Update file to 4.21.

tested by ian@ sthen@

OK ian@, "move ahead with it" deraadt@

Revision 1.3.6.1 / (download) - annotate - [select for diffs], Mon Jul 9 17:32:51 2007 UTC (16 years, 10 months ago) by ckuethe
Branch: OPENBSD_4_0
Changes since 1.3: +37 -18 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Backport security fix.
Original commit by: dim@openbsd.org
Original commit message:
Fix possible heap overflow in file(1), aka CVE-2007-1536.

When writing data into a buffer in the file_printf() function, the
length of the unused portion of the buffer is not correctly tracked,
resulting in a buffer overflow when processing certain files.

Adapted from FreeBSD's SA-07:04.file fix, with ok and some minor
tweaks from canacar@ and ray@.

Revision 1.3.8.1 / (download) - annotate - [select for diffs], Mon Jul 9 17:32:48 2007 UTC (16 years, 10 months ago) by ckuethe
Branch: OPENBSD_4_1
Changes since 1.3: +37 -18 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Backport security fix.
Original commit by: dim@openbsd.org
Original commit message:
Fix possible heap overflow in file(1), aka CVE-2007-1536.

When writing data into a buffer in the file_printf() function, the
length of the unused portion of the buffer is not correctly tracked,
resulting in a buffer overflow when processing certain files.

Adapted from FreeBSD's SA-07:04.file fix, with ok and some minor
tweaks from canacar@ and ray@.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jul 9 16:39:48 2007 UTC (16 years, 10 months ago) by dim
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.3: +37 -18 lines
Diff to previous 1.3 (colored)

Fix possible heap overflow in file(1), aka CVE-2007-1536.

When writing data into a buffer in the file_printf() function, the
length of the unused portion of the buffer is not correctly tracked,
resulting in a buffer overflow when processing certain files.

Adapted from FreeBSD's SA-07:04.file fix, with ok and some minor
tweaks from canacar@ and ray@.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Apr 11 16:31:35 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_0_BASE, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Branch point for: OPENBSD_4_1, OPENBSD_4_0
Changes since 1.2: +4 -3 lines
Diff to previous 1.2 (colored)

handle -1 potential case from snprintf too

Revision 1.2 / (download) - annotate - [select for diffs], Wed May 19 02:36:26 2004 UTC (20 years ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

remove old file, rcsids

Revision 1.1 / (download) - annotate - [select for diffs], Wed May 19 02:32:35 2004 UTC (20 years ago) by tedu
Branch: MAIN

big update to file 4.09.  ok ian@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.