Up to [local] / src / usr.bin / file
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.11, Fri Apr 24 16:24:11 2015 UTC (9 years ago) by nicm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +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.10 / (download) - annotate - [select for diffs], Fri Jan 16 08:24:04 2015 UTC (9 years, 4 months ago) by doug
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.9: +1 -2 lines
Diff to previous 1.9 (colored)
Replace <sys/param.h> with <limits.h> This patch is from Theo. I helped verify that removing <sys/param.h> doesn't change anything. This produces the same binaries before and after with clang 3.5 and gcc 4.9.4 on amd64. There is a slight difference in the way it is generated by our old gcc 4.2.1 despite the fact that the preprocessed input is almost identical. ok deraadt@
Revision 1.9 / (download) - annotate - [select for diffs], Sat Oct 11 03:06:44 2014 UTC (9 years, 7 months ago) by doug
Branch: MAIN
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)
Userland reallocarray() audit. Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
Revision 1.8 / (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_6_BASE,
OPENBSD_5_6,
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.7: +1 -5 lines
Diff to previous 1.7 (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.7 / (download) - annotate - [select for diffs], Thu Aug 27 16:26:43 2009 UTC (14 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +6 -5 lines
Diff to previous 1.6 (colored)
Appease gcc2 (I wish people would write in C, rather than "latest crap gcc added") ok millert miod
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: +49 -38 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: +137 -92 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.4 / (download) - annotate - [select for diffs], Sun Sep 2 15:19:32 2007 UTC (16 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE,
OPENBSD_4_3
Changes since 1.3: +4 -3 lines
Diff to previous 1.3 (colored)
use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg
Revision 1.2.10.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.2: +3 -4 lines
Diff to previous 1.2 (colored) next main 1.3 (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.2.12.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.2: +3 -4 lines
Diff to previous 1.2 (colored) next main 1.3 (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 / (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_2_BASE,
OPENBSD_4_2
Changes since 1.2: +3 -4 lines
Diff to previous 1.2 (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.2 / (download) - annotate - [select for diffs], Wed May 19 02:36:26 2004 UTC (20 years ago) by tedu
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,
OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6
Branch point for: OPENBSD_4_1,
OPENBSD_4_0
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:34:27 2004 UTC (20 years ago) by tedu
Branch: MAIN
file 4.09