dholland
07c23da28f
Don't use the length return from snprintf to write out the result
...
buffer. If snprintf truncated the output, the length returned will be
greater and we'll write trash. Just call strlen instead. (And since
what we're doing is writing progress messages to the user, checking
carefully for truncation isn't really worthwhile either.)
Spotted when attending to PR 50998 from David Binderman; the issue
there (computation of an unused value) popped up because one of the
prints was already calling strlen.
2016-05-31 03:32:36 +00:00
dholland
aaa3b0be84
PR 50792 David Binderman: make sure we don't divide by zero.
...
The loop that picks delay_divisor might conceivably reject all values,
particularly if the hardware is sulking for some reason; in that case
it'll be left zero. Use 1 instead of 0 so we don't then crash.
2016-05-31 03:25:46 +00:00
dholland
3e87dc22c2
PR 50759 David Binderman: fix out of bounds array access.
...
If we don't find one of the expected device addresses, reject the
match, but do it by checking whether the loop matched something rather
than by testing an array entry that might be one past the end.
Note: I have also moved the test to be with the loop; since the call
to intio_map_allocate_region had gotten placed in between them, I've
moved it to go before rather than after them as (a) it doesn't
interact with the loop itself and (b) this seems like the best choice
given the history as it was deliberately added before the original
test.
I have not tried running this, not having an x68k, but as best I can
tell by reading the intio code it seems like it should be harmless
even if it's not really correct.
2016-05-31 03:22:30 +00:00
dholland
06607d557a
fix flagrantly wrong indent
2016-05-31 03:12:49 +00:00
dholland
f8610727d2
Disable the code that tries to prepare a new partition table (but doesn't
...
do anything with it...) because it's zooming off the end of the array it's
trying to use.
It looks to me as if NEW_MAP_SIZE has been accidentally used as both
the number of blocks occupied by the new partition table and also the
number of entries in it. Or something. This needs platform knowledge
to sort out. XXX.
Workaround for PR 50757.
2016-05-31 02:49:50 +00:00
pgoyette
9c7632e4a7
Add entries for fonts.conf.{0,5,html}
...
Finishes PR xsrc/49777
2016-05-31 02:37:15 +00:00
pgoyette
a47b5fd6a6
Install man-link from fonts-conf.5 --> fonts.conf.5 to deal with an
...
erroneous cross-ref in xclock's man-page. suggested by wiz@.
Fixes PR xsrc/49777
2016-05-31 02:35:49 +00:00
dholland
dea44b9dd8
PR 50756 David Binderman: avoid running off the end of an array in case
...
thing we're looking for isn't there. Which is probably impossible, but
that's not obvious.
2016-05-31 02:29:54 +00:00
dholland
ffe3284377
PR 50755 David Binderman: assert about table entries only when they exist.
2016-05-31 02:26:00 +00:00
macallan
a1f15ec7cc
make sure we call sysmon_pswitch_event() from thread context
2016-05-31 02:17:18 +00:00
christos
79332b813c
Handle PIC linking for tests
2016-05-30 22:58:52 +00:00
joerg
1203c26a96
Add printf-like annotation.
2016-05-30 22:02:41 +00:00
mlelstv
44b25f2fac
mark noreturn function exit_daemon() as __dead
2016-05-30 21:58:32 +00:00
abhinav
c995cb6b03
Add 'a' to the stopwords list. Ok from christos
2016-05-30 19:35:29 +00:00
christos
e9a9a47d86
Make sure that all messages end in '\n' in make_message_rcsvalid() and
...
compensate for it in add_rcs_file().
2016-05-30 17:49:51 +00:00
dholland
6b93d6fdd7
PR 51190 David Binderman: simplify redundant conditionals.
...
Also add paranoia when looping on isdigit().
2016-05-30 17:48:29 +00:00
dholland
98cc967daa
PR 51187 David Binderman: simplify redundant conditional
2016-05-30 17:45:26 +00:00
dholland
7f333b5d4c
If MEMSIZE isn't set, #error instead of proceeding using uninitialized
...
stack garbage as the memory size. Please improve as needed; I don't know
anything about this hardware.
PR 51150 from David Binderman.
2016-05-30 17:43:46 +00:00
dholland
c1c801b64b
Remove undefined behavior in buf(); use buf() as intended in intarg().
...
While here also add includes to fix the build. Retires PR 50999 from
David Binderman.
2016-05-30 17:34:35 +00:00
dholland
067a182606
PR 50997 David Binderman: fix format strings
2016-05-30 17:26:29 +00:00
dholland
2c888f6181
PR 50709 David Binderman: memory leak
2016-05-30 17:21:07 +00:00
dholland
4a6aecfb76
PR 50669 David Binderman: remove dead code
2016-05-30 17:18:38 +00:00
dholland
f728cfb218
PR 50643 David Binderman: fix conditional order
2016-05-30 17:11:56 +00:00
dholland
d9a33fbe91
Explicitly ignore errors in the hack for mucking with wedges; mark it XXX
...
for future attention. Other part of PR 50886 from David Binderman.
2016-05-30 17:03:21 +00:00
dholland
ccc5db6204
#if out some unreachable code that's apparently not yet supported.
...
PR 50886 from David Binderman.
2016-05-30 17:00:38 +00:00
dholland
8498a0b32b
bus_width is not used, so don't fetch it; but do leave the logic in place
...
commented out so it's there if anyone wants it in the future.
PR 50594 from David Binderman.
2016-05-30 16:38:35 +00:00
dholland
96e4b50290
Use this program's Strdup() instead of strdup() so it exits on failure
...
instead of dumping core.
2016-05-30 16:35:35 +00:00
dholland
7ad91fe4a4
Use rewind() instead of freopen()'ing the same file for no reason. Also,
...
close the file when done instead of dropping it on the floor. Obsoletes
PR 50579.
2016-05-30 16:26:34 +00:00
pooka
f3167874d4
Disable PR kern/51135 hack now that the problem is supposedly
...
fixed (to see if tests pass).
2016-05-30 14:52:06 +00:00
chs
bb2ba5a5a7
allocate cpuset structures needed by MP DDB.
2016-05-30 13:04:24 +00:00
martin
5fc637a54d
David Binderman in PR kern/51189: simplify loop conditions
2016-05-30 11:24:40 +00:00
martin
cc645bf7b4
David Binderman in PR port-sparc/51188: simplify while condition
2016-05-30 10:37:14 +00:00
alnsn
c5f5595419
Reduce diff with mainstream.
...
In the new sljt version, ppc_cache_flush() is guarded by
SLJIT_CACHE_FLUSH_OWN_IMPL. We can keep is as long as we
don't define SLJIT_CACHE_FLUSH_OWN_IMPL.
2016-05-30 09:34:39 +00:00
nakayama
0350baf089
Adapt to new sljit.
2016-05-30 09:05:32 +00:00
nonaka
ae2737a4e4
regen
2016-05-30 04:18:20 +00:00
nonaka
224b451a1a
Added some Intel wireless devices from OpenBSD.
2016-05-30 04:17:30 +00:00
knakahara
f99c3d3768
fix r1.409 mistake
2016-05-30 03:54:12 +00:00
dholland
bdf7bc55bd
Note that i386 needs a PIE-related cleandir. Should avoid having PR 51174
...
happen to anyone else. :-/
2016-05-30 03:11:48 +00:00
dholland
9f2b1defb5
further whitespace
2016-05-30 03:02:58 +00:00
dholland
964a5c8e1a
KNF
2016-05-30 02:57:32 +00:00
dholland
c72886c629
Reindent.
2016-05-30 02:41:39 +00:00
dholland
cb81c2dd6a
PR 51185 David Binderman: simplify redundant conditional
2016-05-30 02:36:37 +00:00
dholland
fb16143a2d
PR 51184 David Binderman: simplify redundant conditional
2016-05-30 02:33:49 +00:00
dholland
626c0685a4
PR 51183 David Binderman: simplify redundant conditional
2016-05-30 02:32:19 +00:00
dholland
4455a1148f
PR 51182 David Binderman: fix redundant conditional
2016-05-30 02:30:20 +00:00
alnsn
b89a04f5f7
Update sljit entry.
2016-05-29 22:41:54 +00:00
dholland
2e499a79d1
Call the path for makewhatis _PATH_MAKEWHATIS instead of _PATH_WHATIS,
...
for clarity.
2016-05-29 22:33:39 +00:00
dholland
5f3c7438e2
Add notes on how to lift the BUGS entry in the man page (about not
...
supporting hardlinks) in case anyone thinks it's worth doing sometime.
2016-05-29 22:32:03 +00:00
dholland
db0374af17
Add missing rcsid.
2016-05-29 22:09:51 +00:00
alnsn
b8b2eedc8e
Update version in the comment too.
2016-05-29 18:22:30 +00:00