Author: pfg
Date: Mon Jan 21 14:55:10 2019
New Revision: 343258
URL: https://svnweb.freebsd.org/changeset/base/343258
Log:
MFC r343023:
msun: reduce diff between src/e_j0.c and src/e_j0f.c
PR: 229501
Modified:
stable/10/lib/msun/src/e_j0.c
stable/10/lib/msun/src/e_j0f.c
Directory
Author: pfg
Date: Mon Aug 6 02:10:52 2018
New Revision: 337367
URL: https://svnweb.freebsd.org/changeset/base/337367
Log:
MFC r336926:
sed: unsign some indexes to fix sign-compare warnings.
Hinted by:OpenBSD (CVS 1.32)
Modified:
stable/10/usr.bin/sed/extern.h
Author: pfg
Date: Mon Jul 16 00:28:33 2018
New Revision: 336324
URL: https://svnweb.freebsd.org/changeset/base/336324
Log:
MFC r336115;
libiconv: correct undefined behavior.
Detected on NetBSD:
# nm /usr/lib/libc.so|grep sanit
Author: pfg
Date: Mon May 14 19:21:57 2018
New Revision: 333611
URL: https://svnweb.freebsd.org/changeset/base/333611
Log:
MFC r333239:
msdosfs: long names of files are created incorrectly.
This fixes a regression that happened in r120492 (2003) where libkiconv
was introduced and we
Author: pfg
Date: Thu Apr 19 02:50:15 2018
New Revision: 332750
URL: https://svnweb.freebsd.org/changeset/base/332750
Log:
MFC r328957:
{ext2|ufs}_readdir: Avoid setting negative ncookies.
ncookies cannot be negative or the allocator will fail. This should only
happen if a caller is
Author: pfg
Date: Wed Feb 28 02:49:48 2018
New Revision: 330097
URL: https://svnweb.freebsd.org/changeset/base/330097
Log:
MFC r329848:
__printf_render_int(): small type change to match use.
Variable l is consistently used as an int rather than a char.
Sort names while here.
Author: pfg
Date: Wed Feb 28 02:39:38 2018
New Revision: 330095
URL: https://svnweb.freebsd.org/changeset/base/330095
Log:
MFC r329846:
getpeereid(3): Fix behavior on failure to match documentation.
According to the getpeereid(3) documentation, on failure the value -1 is
returned and
Author: pfg
Date: Thu Feb 1 02:00:36 2018
New Revision: 328649
URL: https://svnweb.freebsd.org/changeset/base/328649
Log:
MFC r328497:
pfctl(8): Fix two wrong conditions.
Caught by gcc80's -Wtautological-compare option.
MFC after:5 days
Reviewed by: kp
Obtained from:
Author: pfg
Date: Wed Jan 10 21:24:03 2018
New Revision: 327793
URL: https://svnweb.freebsd.org/changeset/base/327793
Log:
MFC r327289:
rpc.sprayd: Bring some changes from NetBSD.
Most notable, other than some style issues:
CVS 1.11:
do not use LOG_CONS.
CVS 1.13:
Author: pfg
Date: Fri Jan 5 17:23:17 2018
New Revision: 327590
URL: https://svnweb.freebsd.org/changeset/base/327590
Log:
MFC r327329:
dev/txp: Update if_txpreg.h to match OpenBSD's version.
Resolve a minor mismatch: TXP_CMD_READ_VERSION instead of
TXP_CMD_VERSIONS_READ.
Curiously
Author: pfg
Date: Thu Jan 4 15:57:49 2018
New Revision: 327550
URL: https://svnweb.freebsd.org/changeset/base/327550
Log:
MFC r327295:
Start syncing changes from OpenBSD's ip6_id.c instead of ip_id.c.
correct non-repetitive ID code, based on comments from niels provos.
- seed2 is
Author: pfg
Date: Tue Dec 12 22:10:12 2017
New Revision: 326814
URL: https://svnweb.freebsd.org/changeset/base/326814
Log:
MFC r326282: (by fsu)
Remap ENOATTR to ENODATA in the linuxulator.
In the linux ENOADATA is frequently #defined as ENOATTR. The change is
required for an xattrs
Author: pfg
Date: Mon Nov 27 02:44:36 2017
New Revision: 326241
URL: https://svnweb.freebsd.org/changeset/base/326241
Log:
MFC r326028:
iconv: Fix a pointer mismatch.
Catch NULL pointer earlier, check for empty string later.
Apparently this fixes a GCC8 warning.
Obtained from:
Author: pfg
Date: Mon Nov 13 02:31:25 2017
New Revision: 325750
URL: https://svnweb.freebsd.org/changeset/base/325750
Log:
MFC r324962 (by fsu@):
Set doreallocblks sysctl value to zero by default because of
possibility of filesystem corruption.
Fedor has found some weird behavior in
Author: pfg
Date: Tue Nov 7 14:28:10 2017
New Revision: 325514
URL: https://svnweb.freebsd.org/changeset/base/325514
Log:
MFC r325397:
ANSI-fy exec_shell_imgact().
Fix a stray space while here.
PR: 223317
Modified:
stable/10/sys/kern/imgact_shell.c
Directory Properties:
Author: pfg
Date: Sat Nov 4 14:56:58 2017
New Revision: 325396
URL: https://svnweb.freebsd.org/changeset/base/325396
Log:
MFC r325067:
bsnmpd: Only refresh devtree if devd event is a new or removed device.
It makes sense to refresh the tree only when a device is inserted or
removed,
Author: pfg
Date: Sat Nov 4 14:45:36 2017
New Revision: 325394
URL: https://svnweb.freebsd.org/changeset/base/325394
Log:
MFC r325066:
Fix out-of-bounds read in libc/regex.
The bug is an out-of-bounds read detected with address sanitizer that
happens when 'sp' in p_b_coll_elems()
Author: pfg
Date: Mon Oct 30 20:31:48 2017
New Revision: 325164
URL: https://svnweb.freebsd.org/changeset/base/325164
Log:
MFC r324620 (by fsu@):
Add extended attributes support to fuse kernel module.
Author: ken
Reviewed by:cem, pfg (mentor)
Approved by:pfg (mentor)
Author: pfg
Date: Tue Oct 10 21:04:40 2017
New Revision: 324505
URL: https://svnweb.freebsd.org/changeset/base/324505
Log:
MFC r322368, r322371:
fnmatch(3): improve POSIX conformance.
In a recent interpretation[1], "\\" shall return a non-zero value
(indicating either no match or an
Author: pfg
Date: Fri Aug 4 20:24:23 2017
New Revision: 322061
URL: https://svnweb.freebsd.org/changeset/base/322061
Log:
MFC r321838:
sys/net8021: Add missing braces in setcurchan().
Also fix some indentation.
Obtained from:DragonFlyBSD (git c69e37d6)
Modified:
Author: pfg
Date: Tue Aug 1 01:25:18 2017
New Revision: 321833
URL: https://svnweb.freebsd.org/changeset/base/321833
Log:
MFC r320990, r321011:
libthr: Avoid checking for negative values in usigned count.
Check for overflow instead.
Modified:
Author: pfg
Date: Sun Jul 9 15:14:22 2017
New Revision: 320841
URL: https://svnweb.freebsd.org/changeset/base/320841
Log:
MFC r320408:
ext2fs: Support e2di_uid_high and e2di_gid_high.
The fields exist on all versions of the filesystem and using them is a mount
option on linux. For
Author: pfg
Date: Sun Jul 9 15:09:15 2017
New Revision: 320839
URL: https://svnweb.freebsd.org/changeset/base/320839
Log:
MFC r320079:
ext2fs: Enable RO huge_file feature support.
We have support for reading ext4 "huge" files but we can't write
(anything) on ext4. and some filesystem.
Author: pfg
Date: Sun Jun 18 21:48:33 2017
New Revision: 320086
URL: https://svnweb.freebsd.org/changeset/base/320086
Log:
MFC r319676:
patch: if reading fails, do not go into infinite loop asking for a filename.
This can happen if no tty is available.
Obtained from:OpenBSD
Author: pfg
Date: Thu May 4 14:55:07 2017
New Revision: 317796
URL: https://svnweb.freebsd.org/changeset/base/317796
Log:
MFC r317596:
mixer(8): Prevent possible sscanf() overflow.
Fix %s buffer sizes in sscanf().
Obtained from:DragonflyBSD (git dab952e2)
Modified:
Author: pfg
Date: Thu May 4 14:50:25 2017
New Revision: 317794
URL: https://svnweb.freebsd.org/changeset/base/317794
Log:
MFC r317583:
Fix some cases where an index was used before its limits check.
Obtained from:DragonFlyBSD (git 799ba435)
Modified:
Author: pfg
Date: Thu Apr 27 23:14:01 2017
New Revision: 317532
URL: https://svnweb.freebsd.org/changeset/base/317532
Log:
Revert r314937 as anonymous unions in GCC don't seem to work.
This has been breaking the powerpc(LINT64 at least) for quite a while now.
Reported by: emaste
Author: pfg
Date: Thu Apr 13 15:40:57 2017
New Revision: 316763
URL: https://svnweb.freebsd.org/changeset/base/316763
Log:
MFC r316695, MFV r316693:
8046 Let calloc() do the multiplication in libzfs_fru_refresh
Author: pfg
Date: Mon Mar 20 00:55:24 2017
New Revision: 315600
URL: https://svnweb.freebsd.org/changeset/base/315600
Log:
MFC r315212, r315213, r315214, r315215:
mkimg(1): let calloc(3) do the multiplication.
nscd(8): let calloc(3) do the multiplying.
mpsutil(8): let calloc(3) do the
Author: pfg
Date: Sun Mar 19 20:04:57 2017
New Revision: 315582
URL: https://svnweb.freebsd.org/changeset/base/315582
Log:
MFC r315426, MFV r315425:
one-true-awk: have calloc(3) do the multiplication.
Modified:
stable/10/contrib/one-true-awk/b.c
Directory Properties:
stable/10/ (props
Author: pfg
Date: Thu Mar 16 15:10:04 2017
New Revision: 315415
URL: https://svnweb.freebsd.org/changeset/base/315415
Log:
MFC r315187:
libc: mall cleanup.
Let calloc(3) do the multiplication.
Modified:
stable/10/lib/libc/stdlib/getenv.c
Directory Properties:
stable/10/ (props
Author: pfg
Date: Sun Mar 12 05:36:31 2017
New Revision: 315135
URL: https://svnweb.freebsd.org/changeset/base/315135
Log:
MFC r314321:
dc(1): Merge minor changes from OpenBSD.
Prefer setvbuf() to setlinebuf() for portability.
Some style(9) and redundant tests for NULL.
These are
Author: pfg
Date: Thu Mar 9 02:59:02 2017
New Revision: 314939
URL: https://svnweb.freebsd.org/changeset/base/314939
Log:
MFC r314145, r314158
vxge(4): double assignments.
Fix some suspicious code, likely caused by excessive copy-pasting.
Found with: coccinelle (da.cocci)
Author: pfg
Date: Thu Mar 9 02:47:01 2017
New Revision: 314937
URL: https://svnweb.freebsd.org/changeset/base/314937
Log:
Revert 294545:
Bringing back ext4: add support for reading sparse files
Add GCC_MS_EXTENSIONS to the CFLAGS in the module to make the old GCC in
base happy. This
Author: pfg
Date: Wed Mar 8 22:39:45 2017
New Revision: 314922
URL: https://svnweb.freebsd.org/changeset/base/314922
Log:
MFC r314505:
Split the ficl CFLAGS when they refer to an arch-specific include path.
This is a minimal attempt to keep consistency in the Makefiles so that
moving
Author: pfg
Date: Wed Mar 1 01:19:41 2017
New Revision: 314445
URL: https://svnweb.freebsd.org/changeset/base/314445
Log:
MFC r314316:
dc(1): Catch up with OpenBSD tag.
OpenBSD rev 1.12 corresponds to our SVN r275162. Update the tag to make
easier future updates. No functional change.
Author: pfg
Date: Fri Feb 24 21:38:41 2017
New Revision: 314227
URL: https://svnweb.freebsd.org/changeset/base/314227
Log:
MFC r313897:
ext2fs: Remove unused assignment.
The value is re-assigned a few lines later without being read.
Found by: Clang static analyzer
Modified:
Author: pfg
Date: Fri Feb 24 21:22:13 2017
New Revision: 314224
URL: https://svnweb.freebsd.org/changeset/base/314224
Log:
MFC r313554:
Clean redundant MIN/MAX declarations in some HighPoint drivers.
The hpt27xx(4), hptnr(4), and hptrr(4) drivers declare MIN() and MAX()
internally
Author: pfg
Date: Sun Feb 19 21:10:34 2017
New Revision: 313971
URL: https://svnweb.freebsd.org/changeset/base/313971
Log:
MFC r313819:
Remove outdated claim.
Despite wishful thinking the removal of these old functions hasn't
happened yet.
Modified:
stable/10/include/stdlib.h
Author: pfg
Date: Mon Feb 6 05:27:05 2017
New Revision: 313321
URL: https://svnweb.freebsd.org/changeset/base/313321
Log:
MFC r312667:
sort - Don't live-loop threads.
Worker threads now use a pthread_cond_t to wait for work instead of
burning the cpu up.
Obtained from:
Author: pfg
Date: Fri Feb 3 16:36:14 2017
New Revision: 313165
URL: https://svnweb.freebsd.org/changeset/base/313165
Log:
MFC r312001:
Remove __nonnull() attributes from x86 machine check architecture.
In this case the attributes serve little purpose as they just don't
enforce run
Author: pfg
Date: Mon Jan 23 01:21:39 2017
New Revision: 312657
URL: https://svnweb.freebsd.org/changeset/base/312657
Log:
MFC r312443:
mppc - Finish pluging NETGRAPH_MPPC_COMPRESSION.
There were several places where reference to compression were left
unfinished. Furthermore, KASSERTs
Author: pfg
Date: Wed Jan 18 15:23:40 2017
New Revision: 312386
URL: https://svnweb.freebsd.org/changeset/base/312386
Log:
MFC r311947, r311981:
rpcgen(1): Avoid unused variable warning on generated code.
Avoid "unused variable 'i'" warnings in generated .c files by only
emitting
Author: pfg
Date: Mon Jan 16 03:52:20 2017
New Revision: 312253
URL: https://svnweb.freebsd.org/changeset/base/312253
Log:
MFC r311101:
libkvm - extend a bit the swap statistics field.
Change ksw_used and ksw_total to unsigned, which increases the maximum
total swap that can be
Author: pfg
Date: Wed Jan 4 02:43:33 2017
New Revision: 311232
URL: https://svnweb.freebsd.org/changeset/base/311232
Log:
MFC r310705, r310706:
style(9) cleanups.
Just to reduce some of the issues found with indent(1).
Modified:
stable/10/sys/fs/ext2fs/ext2_alloc.c
Author: pfg
Date: Mon Dec 26 16:43:39 2016
New Revision: 310606
URL: https://svnweb.freebsd.org/changeset/base/310606
Log:
MFC r310367:
pax(1): Fix a bug with archives smaller than 512 bytes.
The problem here is that the archive is too short (< 512 bytes). The
buffer routines,
Author: pfg
Date: Wed Dec 21 15:39:16 2016
New Revision: 310369
URL: https://svnweb.freebsd.org/changeset/base/310369
Log:
MFC r310132:
libbfd: make sure variables are initialized before using them.
Initialize l_sec_contents to make sure that free(l_sec_contents) is called
on valid
Author: pfg
Date: Sat Dec 3 00:45:13 2016
New Revision: 309456
URL: https://svnweb.freebsd.org/changeset/base/309456
Log:
MFC r309179:
ext2fs: avoid possible overflow when calculating malloc size.
This is inspired on r308064 for the case of mounting UFS.
Modified:
Author: pfg
Date: Wed Oct 19 16:40:38 2016
New Revision: 307641
URL: https://svnweb.freebsd.org/changeset/base/307641
Log:
MFC r306332:
btree(3): don't shortcut closing if the metadata is dirty.
Obtained from:NetBSD (from krb5 tree)
Modified:
Author: pfg
Date: Sun Oct 9 20:13:53 2016
New Revision: 306914
URL: https://svnweb.freebsd.org/changeset/base/306914
Log:
MFC r306560, r306561:
patch(1): make some macros look boolean.
Minor cleanup inspired by a new patch(1) variant in schily tools.
For reference:
Author: pfg
Date: Sun Oct 9 19:58:27 2016
New Revision: 306910
URL: https://svnweb.freebsd.org/changeset/base/306910
Log:
MFC r305812:
fifolog(1): invert order of calloc(3) arguments.
The second argument to calloc(3) should be the size, make it so.
While here be a little bit
Author: pfg
Date: Thu Sep 8 15:27:42 2016
New Revision: 305619
URL: https://svnweb.freebsd.org/changeset/base/305619
Log:
MFC r303893, r303894:
misc replacements of comma with semicolon when pertinent.
Uses of commas instead of a semicolons can easily go undetected. The comma
can
Author: pfg
Date: Thu Sep 8 15:12:55 2016
New Revision: 305617
URL: https://svnweb.freebsd.org/changeset/base/305617
Log:
MFC r303889:
libc/rpc: replace comma with semicolon when pertinent.
Uses of commas instead of a semicolons can easily go undetected. The comma
can serve as a
Author: pfg
Date: Thu Sep 8 15:06:28 2016
New Revision: 305615
URL: https://svnweb.freebsd.org/changeset/base/305615
Log:
MFC r303891, r303892:
sys: replace comma with semicolon when pertinent.
Uses of commas instead of a semicolons can easily go undetected. The comma
can serve as a
Author: pfg
Date: Tue Sep 6 19:53:05 2016
New Revision: 305494
URL: https://svnweb.freebsd.org/changeset/base/305494
Log:
MFC r303799, r303800:
ext2fs: Add defines for some missing ext4 features and inode flags.
These are currently unused in our implementation and some even appear
Author: pfg
Date: Sat Aug 20 02:18:44 2016
New Revision: 304517
URL: https://svnweb.freebsd.org/changeset/base/304517
Log:
MFC r303147
binutils: fix "Bad value" error in bfd for MIPS when using -Bsymbolic.
From OpenBSD's log:
Inspired by
Author: pfg
Date: Mon Jul 25 15:04:15 2016
New Revision: 303303
URL: https://svnweb.freebsd.org/changeset/base/303303
Log:
MFC r302911:
mail(1): Avoid closing negative file descriptors.
CID: 1008105, 1008106
Modified:
stable/10/usr.bin/mail/quit.c
Author: pfg
Date: Wed Jul 20 04:49:01 2016
New Revision: 303065
URL: https://svnweb.freebsd.org/changeset/base/303065
Log:
MFC r302973:
sed(1): Fix off by one introduced in r299211.
Detected by running the gsed tests.
Submitted by: Mikhail Teterin
PR: 195929
Modified:
Author: pfg
Date: Sun Jul 17 18:32:33 2016
New Revision: 302968
URL: https://svnweb.freebsd.org/changeset/base/302968
Log:
MFC r302511, r302771, r302845:
mail(1): check for out of memory conditions when calling calloc(3).
Modified:
stable/10/usr.bin/mail/cmd3.c
Author: pfg
Date: Tue Jun 28 03:11:07 2016
New Revision: 302244
URL: https://svnweb.freebsd.org/changeset/base/302244
Log:
MFC r301138:
sed(1): convert sed to use REG_STARTEND more explicitly.
This is a followup to previous r302228, which only merged the
incomplete r300684 causing a
Author: pfg
Date: Mon Jun 27 20:54:02 2016
New Revision: 302228
URL: https://svnweb.freebsd.org/changeset/base/302228
Log:
sed(1): convert sed to use REG_STARTEND more explicitly.
Summarizing the findings in the OpenBSD list:
This solves a reproduceable issue with very recent Mesa
Author: pfg
Date: Tue Jun 21 15:47:54 2016
New Revision: 302061
URL: https://svnweb.freebsd.org/changeset/base/302061
Log:
MFC r301549, r301550:
ng_mppc(4): Bring netgraph(3) MPPC compression support.
Support for compression has been available from July 2007 but it
was never imported
Author: pfg
Date: Fri Jun 17 02:29:55 2016
New Revision: 301976
URL: https://svnweb.freebsd.org/changeset/base/301976
Log:
MFC r301291:
libiberty: prevent integer overflow.
Take care of very old bug leading to heap-buffer overflow by
processing certain file headers via bfd binary.
Author: pfg
Date: Sat Jun 11 03:58:59 2016
New Revision: 301822
URL: https://svnweb.freebsd.org/changeset/base/301822
Log:
MFC r301570:
libsupc++: Fix typo in symbol map.
This went mostly unnoticed with the deprecation of the GNU toolchain
in tier 1 platforms. Fix it now for the rest.
Author: pfg
Date: Fri Jun 10 22:07:17 2016
New Revision: 301817
URL: https://svnweb.freebsd.org/changeset/base/301817
Log:
MFC r300301, r300319:
GCC: Add support for named initializers for anonymous structs/unions.
This is a C11 feature that is starting to get used in places such as
Author: pfg
Date: Fri Jun 10 21:47:37 2016
New Revision: 301816
URL: https://svnweb.freebsd.org/changeset/base/301816
Log:
MFC r300333:
gas: Implement the .inst assembler directive for arm.
We normally use the binutils from ports but on other systems this
is required for building gcc
Author: pfg
Date: Sun Jun 5 15:03:55 2016
New Revision: 301446
URL: https://svnweb.freebsd.org/changeset/base/301446
Log:
MFC r301206:
usb/uhso: Don't bail out on first USB error.
CID: 1305680
Submitted by: hselasky
MFC after:3 days
Modified:
Author: pfg
Date: Sat Jun 4 04:01:28 2016
New Revision: 301298
URL: https://svnweb.freebsd.org/changeset/base/301298
Log:
MFC r300376:
ndis(4): Better mimic the behavior of rand() on Windows.
In ndis(4) we expose a rand() function that was constantly reseeding
with a time depending
Author: pfg
Date: Fri Jun 3 03:20:54 2016
New Revision: 301233
URL: https://svnweb.freebsd.org/changeset/base/301233
Log:
MFC r300322, 300340:
ed(1): Cleanups for the DES mode.
- Use arc4random_buf(3).
- Prevent a segmentation fault when ed receives a signal
while being in
Author: pfg
Date: Fri Jun 3 03:12:28 2016
New Revision: 301232
URL: https://svnweb.freebsd.org/changeset/base/301232
Log:
MFC r300304:
gas/config/tc-arm.c: Minor re-sorting to match upstream history.
No functional change.
Modified:
stable/10/contrib/binutils/gas/config/tc-arm.c
Author: pfg
Date: Tue May 24 03:08:32 2016
New Revision: 300555
URL: https://svnweb.freebsd.org/changeset/base/300555
Log:
sed: rewrite the main loop.
Rewrite the main loop of the "sed s/..." command, shortening it by ten
lines and simplifying it by removing the switch statement
Author: pfg
Date: Tue May 24 02:57:13 2016
New Revision: 300553
URL: https://svnweb.freebsd.org/changeset/base/300553
Log:
MFV r299377:
sed.1: Correction for the case insensitive case.
Use the capital I instead of the lowercase.
Submitted by: Mikhail T.
Modified:
Author: pfg
Date: Wed May 18 00:33:08 2016
New Revision: 300099
URL: https://svnweb.freebsd.org/changeset/base/300099
Log:
MFC r299089:
fsck_msdosfs: Adjust a check.
The on-disk FAT array does not include anything before CLUST_FIRST,
compensate in size check.
Obtained from:
Author: pfg
Date: Tue May 17 15:18:01 2016
New Revision: 300060
URL: https://svnweb.freebsd.org/changeset/base/300060
Log:
MFC r298931, r298981, r299375:
Minor spelling fixes in:
sys/dev, sys/sys
Many of these have user-visible strings.
Modified:
Author: pfg
Date: Mon May 16 16:29:56 2016
New Revision: 299954
URL: https://svnweb.freebsd.org/changeset/base/299954
Log:
MFC r298901:
restore: promote some getfiles() parameters to size_t.
This is based on a change from OpenBSD:
"Fix restore so that it can actually restore files
Author: pfg
Date: Sun May 15 03:15:36 2016
New Revision: 299826
URL: https://svnweb.freebsd.org/changeset/base/299826
Log:
MFC r298881, 298882, 298883, 298885:
Minor spelling fixes in:
tools, share, bluetooth, pmcstat, etc
Many of these have user-visible strings.
Modified:
Author: pfg
Date: Sat May 14 00:44:23 2016
New Revision: 299706
URL: https://svnweb.freebsd.org/changeset/base/299706
Log:
MFC r298831:
boot/forth: minor spelling fixes.
Modified:
stable/10/sys/boot/forth/delay.4th
stable/10/sys/boot/forth/loader.4th
Author: pfg
Date: Sat May 14 00:35:49 2016
New Revision: 299705
URL: https://svnweb.freebsd.org/changeset/base/299705
Log:
MFC r298829
sys/compat/linux*: minor spelling fixes.
Modified:
stable/10/sys/compat/linux/check_internal_locks.d
stable/10/sys/compat/linux/linux_fork.c
Author: pfg
Date: Fri May 13 15:09:38 2016
New Revision: 299677
URL: https://svnweb.freebsd.org/changeset/base/299677
Log:
MFC r298809, r298817
Minor spelling fixes.
Modified:
stable/10/sys/cam/cam_queue.c
stable/10/sys/kern/vfs_bio.c
stable/10/sys/kern/vfs_vnops.c
Directory
Author: pfg
Date: Thu May 12 00:45:57 2016
New Revision: 299497
URL: https://svnweb.freebsd.org/changeset/base/299497
Log:
MFC r298755:
sys/geom: spelling fixes.
These affect debugging messages.
Modified:
stable/10/sys/geom/journal/g_journal.h
stable/10/sys/geom/raid/g_raid_ctl.c
Author: pfg
Date: Wed May 11 00:59:06 2016
New Revision: 299400
URL: https://svnweb.freebsd.org/changeset/base/299400
Log:
MFC r298703:
cam: unsign some types to match their definitions and avoid overflows.
numpatterns is u_int.
ctl:
CTL_NUM_MODE_PAGES comes from sizeof().
In
Author: pfg
Date: Wed May 11 00:36:31 2016
New Revision: 299397
URL: https://svnweb.freebsd.org/changeset/base/299397
Log:
MFC r298698:
geom: unsign some types to match their definitions and avoid overflows.
In struct:gctl_req, nargs is unsigned.
In mirror:
g_mirror_syncreqs is
Author: pfg
Date: Tue May 10 02:13:17 2016
New Revision: 299295
URL: https://svnweb.freebsd.org/changeset/base/299295
Log:
MFC r298609:
ext2fs: make use of the howmany() macro when available.
We have a howmany() macro in the header that is
convenient to re-use as it makes things
Author: pfg
Date: Fri May 6 01:37:06 2016
New Revision: 299148
URL: https://svnweb.freebsd.org/changeset/base/299148
Log:
MFC r298868, r298874:
restore: fix memory and resource handle leaks.
CID: 272297, 1007784
Modified:
stable/10/sbin/restore/main.c
Author: pfg
Date: Thu May 5 01:34:58 2016
New Revision: 299106
URL: https://svnweb.freebsd.org/changeset/base/299106
Log:
MFC r298732:
sys/devfs: unsign an index to prevent signed integer overflow.
cdp_maxdirent in struct:cdev_priv is of type u_int. Use the same
type for the
Author: pfg
Date: Thu May 5 01:29:53 2016
New Revision: 299103
URL: https://svnweb.freebsd.org/changeset/base/299103
Log:
MFC r298731, r298734:
ndis(4): unsign some indexes to prevent overflows.
The "len" parameter is uint32_t, indexing it with an int may
end up in a signed integer
Author: pfg
Date: Tue May 3 15:04:56 2016
New Revision: 298979
URL: https://svnweb.freebsd.org/changeset/base/298979
Log:
MFC r298556:
ifconfig: prevent some improbable signed integer overflows.
ic_nchans, from struct:ieee80211req_chaninfo, is an unsigned int.
Use an unsigned index
Author: pfg
Date: Fri Apr 29 03:04:56 2016
New Revision: 298764
URL: https://svnweb.freebsd.org/changeset/base/298764
Log:
MFC r298551, r298679, r298680:
fsck_ffs: use uint32_t for closedisk().
fs_ncg is of type uint32_t, and we were indexing it with an int.
Fixed this using an
Author: pfg
Date: Fri Apr 29 02:56:03 2016
New Revision: 298763
URL: https://svnweb.freebsd.org/changeset/base/298763
Log:
MFC r298530:
patch(1): avoid signed integer overflow when debugging.
Integer i is used to index p_end of type LINENUM (actually long).
Match the types.
Modified:
Author: pfg
Date: Thu Apr 28 01:11:25 2016
New Revision: 298726
URL: https://svnweb.freebsd.org/changeset/base/298726
Log:
MFC r298521;
regex: prevent two improbable signed integer overflows.
In matcher() we used an integer to index nsub of type size_t.
In print() we used an integer to
Author: pfg
Date: Thu Apr 28 01:05:40 2016
New Revision: 298725
URL: https://svnweb.freebsd.org/changeset/base/298725
Log:
MFC r298518:
ext2_htree_release(): prevent signed integer overflow in a loop.
h_levels_num, as most data structs in ext2fs, is unsigned so
the index that addresses
Author: pfg
Date: Tue Apr 26 17:39:54 2016
New Revision: 298653
URL: https://svnweb.freebsd.org/changeset/base/298653
Log:
MFC r298482:
Cleanup redundant parenthesis from existing howmany()/roundup() macro uses.
Requested by: dchagin
Modified:
stable/10/sys/amd64/amd64/pmap.c
Author: pfg
Date: Mon Apr 25 00:51:13 2016
New Revision: 298557
URL: https://svnweb.freebsd.org/changeset/base/298557
Log:
MFC r297796:
ext2fs: replace 0 with NULL for pointers.
While here do late initialization of ebap, similar as was
done in UFS.
Found with devel/coccinelle.
Author: pfg
Date: Sun Apr 24 03:11:52 2016
New Revision: 298527
URL: https://svnweb.freebsd.org/changeset/base/298527
Log:
MFC r297791:
UFS: replace 0 with NULL for pointers.
While here also do late initialization of the variables we are
changing.
Found with devel/coccinelle.
Author: pfg
Date: Thu Apr 21 14:57:44 2016
New Revision: 298406
URL: https://svnweb.freebsd.org/changeset/base/298406
Log:
MFC r297527, r297688:
chdone(): Prevent returning uninitialized scalar value.
Instead of attempting to initialize all the possible cases, just
move the check
Author: pfg
Date: Thu Mar 31 01:36:50 2016
New Revision: 297440
URL: https://svnweb.freebsd.org/changeset/base/297440
Log:
MFC r296278:
mbtowc(3): set errno to EILSEQ if an incomplete character is passed.
According to POSIX, The mbtowc() function shall fail if:
[EILSEQ] An invalid
Author: pfg
Date: Sun Mar 27 19:42:42 2016
New Revision: 297319
URL: https://svnweb.freebsd.org/changeset/base/297319
Log:
MFC r296095:
rpc: fix failure to clear string by passing the wrong size to memset.
Noted by NetBSD's PR/21014
Obtained from:NetBSD (CVS Rev. 1.24, 1.25)
Author: pfg
Date: Fri Mar 25 01:01:32 2016
New Revision: 297263
URL: https://svnweb.freebsd.org/changeset/base/297263
Log:
MFC r297037:
aio_qphysio(): Avoid uninitialized pointer read on error.
For the !unmap case it may happen that pbuf gets called unreferenced
when
Author: pfg
Date: Fri Mar 25 00:39:01 2016
New Revision: 297259
URL: https://svnweb.freebsd.org/changeset/base/297259
Log:
MFC r296394:
xdr: Fix xdr_rpc* defines.
The defines for xdr_rpc* in xdr.h are wrong. It could be
very well that Solaris did strip the '_t' from xdr_u_int32_t,
Author: pfg
Date: Mon Mar 21 01:14:32 2016
New Revision: 297129
URL: https://svnweb.freebsd.org/changeset/base/297129
Log:
MFC r296816:
libdtrace: use calloc(3) instead of malloc(3) when it makes sense.
calloc(3) is faster and occasionally safer than malloc(3) + bzero(3).
In one
1 - 100 of 136 matches
Mail list logo