Commit Graph

144491 Commits

Author SHA1 Message Date
erh a329a6a0ae Fix Coverity issue 1754. Call fts_close() after we're done copying. 2006-03-17 06:22:30 +00:00
garbled e50f041957 ANSIfy more code in prep. 2006-03-17 06:11:58 +00:00
jld 2e34cd0e5e Add some missing memory barriers I noticed.
Discussed on port-xen.
2006-03-17 06:04:24 +00:00
erh 8ad33681f8 Fix Coverity issues 2321 and 2320. Make sure to free allocated memory. 2006-03-17 06:01:14 +00:00
garbled 6434af65ce ANSIfy all these files.. just formatting changes.
Remove kbdreg.h.. this was part of pccons, and was apparently missed long
ago.
2006-03-17 05:33:33 +00:00
erh 840c5222df Fix -uu handling so recursive updates of already installed packages work,
even if the initial package to install isn't installed yet.
Bump the version to 20060313.
2006-03-17 05:32:11 +00:00
rumble 0fe2cb9e42 Ensure that malloc does not return NULL before copying the buffer. 2006-03-17 04:53:55 +00:00
rittera dd3a1291db Added myself, Alan Ritter 2006-03-17 03:23:28 +00:00
chris fea7c6a78b Fix range to check to avoid a static buffer overrun, when
font->encoding == 4, which would cause access past the end of the encodings
array.

Fixes Coverity CID 1446.

Note that perhaps we should actually have an encoding line for
WSDISPLAY_FONTENC_ISO2 which is encoding 4.
2006-03-17 03:21:57 +00:00
elad 8adb45d48c Fix off-by-one found by Coverity, CID 1529. 2006-03-17 02:56:05 +00:00
chris d79b92051d Only dereference b after it has been NULL checked.
Coverity CID 2398.
2006-03-17 02:52:56 +00:00
chris 4727225848 Fix case where argv wasn't returned or freed.
This fixes Coverity CID 2023.

While here also return NULL if the malloc fails.
2006-03-17 02:48:29 +00:00
elad 70b1ddf050 Overrun found by Coverity, CID 1549. 2006-03-17 02:41:31 +00:00
hubertf 986192d148 Add sanity check if there's a @cwd in the +CONTENT file.
If not abort, because we wouldn't know where to put the files.

Coverity CID 1358
2006-03-17 02:37:31 +00:00
chris 9ccbde6fee Free eonce in the case of bad event combination.
Coverity CID 1705.
2006-03-17 02:34:22 +00:00
hubertf 3c5de91c39 pkg_do(): only use cp2 if it's really set to something useful
Coverity CID 1176
2006-03-17 02:31:44 +00:00
elad 21831d5e1d Fix an off-by-one found by Coverity, CID 1456.
I haven't looked, but I suggest security-officer@ looks into it to see if
this may be exploited passively?
2006-03-17 02:31:03 +00:00
chris 165401a5bd Move strlen(s) to after s is known to be not NULL, or set to "(null)" .
Fixes Coverity CID 2353.
2006-03-17 02:25:23 +00:00
hubertf fc4fb72e38 findbestmatchingname_fn(): catch possible problems if best (vp)
contains some strange name (shouldn't happen, but ...)

Coverity CID 869
2006-03-17 02:20:46 +00:00
elad 237c0ec2a5 Fix three off-by-ones found by Coverity. CID 1444, 1445. 2006-03-17 02:12:15 +00:00
hubertf 92acb1f6e9 findbestmatchingname_fn(): only do something sensible if the pointer
handed in is actually usable (not NULL)

Fixes Coverity ID 870
2006-03-17 02:10:55 +00:00
hubertf baf66cc3f1 We can't sprintf() into a NULL pointer - catch that properly
for ALL cases.

Coverity CID 861
2006-03-17 01:58:25 +00:00
elad 9e505fa94b Fix two off-by-ones found by Coverity. 2006-03-17 01:55:31 +00:00
chris caebf8211b Move check for rnode being NULL to before it's first use.
Fixes Coverity CID 2434
2006-03-17 01:52:08 +00:00
hubertf f500b89c3d Free some allocated memory in the failure case when trying to
fetch the panic string.

Fixes Coverity CID 1856.
2006-03-17 01:45:51 +00:00
hubertf 19dcd9a850 Fix filedescriptor leak
Coverity CID 1625
2006-03-17 01:10:53 +00:00
dmcmahill 3ebb7ce790 Correct a check for an index being in bounds for a static array. 2006-03-17 00:02:30 +00:00
yamt 95d49eaf40 ETA estimated time of arrival 2006-03-16 23:27:20 +00:00
christos d8a5b3caf5 warns=4 2006-03-16 23:25:17 +00:00
bouyer 14e4157f2e Add a xenbus_read_ul() which reads a node and convert it to unsigned long.
Make xenbus_switch_state() and xenbus_read_driver_state() do something usefull.
2006-03-16 23:08:08 +00:00
bouyer 62b855014e m_copyback() doesn't work the way I expexted it: it doesn't update the
mbuf fields, and it seems it doesn't allocate mbuf clusters for large
packets. So revert to using MCLGET() if needed and memcpy to get the
data in the mbuf.
Should fix panic in m_makewritable() reported by Mike M. Volokhov
and Andreas Wrede on port-xen, patch tested by Andreas Wrede.
2006-03-16 23:02:50 +00:00
wiz c6b6c1a57b Unobsolete slstats and its man page, now the links have been added. 2006-03-16 22:06:40 +00:00
wiz e4db2061d4 Comment out xrefs to man pages we do not have. Add serial comma. 2006-03-16 22:04:25 +00:00
drochner b89e2072ab need to set uio_vmspace for XMM accesses 2006-03-16 18:59:17 +00:00
jwise 8bc0f5da0f Now that we have real build system support for syspkgs, remove someone's
half-implemented idea of building `syspkgs' (really a few giant blobs of the
same granularity of the old sets) using install(1).
2006-03-16 18:43:34 +00:00
drochner 751e656b13 adjust a diagnostic printf 2006-03-16 18:22:16 +00:00
jwise ddc4bc7432 Add support for new ipf and pf syspkgs. 2006-03-16 17:57:03 +00:00
jwise f1e239603f Fix two pf miscategorizations. 2006-03-16 17:56:20 +00:00
garbled d736b3d508 More changes to prep port:
1) Add the NVRAM device.  This device allows us to speak with the nvram on
prep-based machines and read/write to it.  Also add a simple IOCTL
interface for speaking with the nvram from userland.  This hasn't been
tested yet, but eventually I plan to support it with the sparc eeprom
command.
2) Change the root device detection to use the nvram device to attempt to
guess the boot device.  Most machines should now correctly guess thier
boot device, though I expect a few devices to still not work quite right yet.
3) change the default IRQ to level rather than edge in the pnpbus if the
flags are invalid or empty. (based on output from a PowerStack E1)
4) correctly handle older machines in pnpbus that have FixedIOPorts
rather than variable ones.

Still have much to do.
2006-03-16 17:43:34 +00:00
jwise 426711902e Some users use pf. Some use ipfilter. Syspkg was designed for situations
like this, where a user may well want to install one of these but not the
other.

To allow syspkg to be used for its intended purpose here, carefully split
out ipfilter and pf from the main {base,comp,man,misc}-net{,util}-* packages

(something which was partially done for ipf, but not done for pf in the
past).

This way, a user can pkg_delete *-{ipf,pf}-*, and not have utilities,
libraries, man pages, examples, or default /etc files for the packet filter
they don't like.
2006-03-16 17:38:46 +00:00
chs a940d15b3c handle another difference between the BSDs:
free the original mbuf in the jumbo-free callback too.
2006-03-16 17:26:13 +00:00
christos 62da5ad066 forgot to commit the links to sl* 2006-03-16 16:53:23 +00:00
christos f04bb5fddb warns=4 2006-03-16 16:49:07 +00:00
rpaulo afcaa10a27 Refactor this test suite for v4-only and dual-stack hosts.
XXX: We will need to re-visit this regression test when we add IPv6
only support in the kernel.
2006-03-16 16:24:23 +00:00
cube f40bc6f570 s/uint32_t/unsigned int/ because we don't always have the former defined.
Reported by Juergen Hannken-Illjes.

XXX I prefer uint32_t, but there might be some namespace issues so for now
    it will do.
2006-03-16 16:05:53 +00:00
christos 7a151ba681 include if_ether.h if you want to use ether_sprintf() 2006-03-16 15:59:22 +00:00
christos cbff0fb84a Add a new function called ether_snprintf() which takes an external buffer
and a length. The buffer should be 3 * addrlen.
Remove local tap_ether_sprintf(), and use ether_snprintf() instead.
2006-03-16 15:57:59 +00:00
christos cbf41b4afc Remove duplicate and slightly different declaration of ether_sprintf, which
really should be in if_ether.h like all the other ether_ functions.
2006-03-16 15:56:28 +00:00
christos c92b23ffa8 Don't use DEBUG, add a new DEBUG_NFS_BOOT_DHCP variable to provide more
information. Print more information about what fails.
2006-03-16 15:55:20 +00:00
he 450ce68a74 Transform to new signature for uvm_fault() by dropping the third arg.
Discussed with drochner.
2006-03-16 15:10:06 +00:00