christos
227e68b656
free memory on allocation failure.
2006-03-17 17:04:22 +00:00
christos
2044d4f590
Coverity CID 2671: Fix use of ifp after free.
2006-03-17 16:58:09 +00:00
tnozaki
e01718f7f1
do not use LS0/LS1 but SI/SO.
2006-03-17 16:37:10 +00:00
tnozaki
2a441a26bc
fix invalid charset-bit.
2006-03-17 16:25:06 +00:00
hubertf
2b40d43066
Fix minor ressource leak
...
Coverity CID 1855
OK'd by thorpej
2006-03-17 16:14:48 +00:00
uebayasi
8572d2c144
Stop using linker scripts on all sh3 ports.
...
The only information to be compensated is text section start address.
The default value is set arch-wise as DEFTEXTADDR. Each kernel config
can override the default value by setting TEXTADDR.
Tested on COMPUTEXEVB (evbsh3).
Reviewed By: uwe
2006-03-17 16:06:51 +00:00
rumble
e948e1b17f
Check for allocation failures in malloc, calloc, realloc, asprintf, and
...
vasprintf and try to handle them.
2006-03-17 15:53:46 +00:00
ginsbach
f44127c4ef
Fix Coverity issue 2281, resource leak, function return without freeing
...
dynamically allocated storage.
2006-03-17 15:53:29 +00:00
peter
11f7fb17d4
Fix file descriptor leaks.
...
Coverity CID 1681.
2006-03-17 15:50:44 +00:00
christos
75f03570ec
Coverity CID 2719: argvalue can be NULL when passed into functions.
...
De-obfuscate by undefining optarg, and check explicitly for NULL before
use.
2006-03-17 15:39:44 +00:00
rumble
e973f66640
Gracefully handle out of memory condition.
2006-03-17 14:50:44 +00:00
rumble
2174dda221
Handle asprintf failing to allocate.
2006-03-17 14:43:11 +00:00
elad
fb41d90922
Proper bounds access, found by Coverity, CID 1470.
2006-03-17 14:40:11 +00:00
rumble
88f1652fe8
Handle asprintf returning NULL.
2006-03-17 14:37:14 +00:00
dmcmahill
de309be996
put the array bounds check _before_ accessing the array.
...
Coverity CID: 1479
2006-03-17 14:20:10 +00:00
dmcmahill
ee00225705
put the array bounds check _before_ accessing the array.
...
Coverity CID: 1480
2006-03-17 14:14:45 +00:00
elad
6ec9e1c359
Proper bounds check, found by Coverity, CID 1468.
2006-03-17 13:58:27 +00:00
rumble
3ad5f13d80
Handle malloc returning NULL.
2006-03-17 13:53:31 +00:00
gdt
81331897bb
Add wi* at pci, to make PRISM mini PCI cards work. Tested on IBM
...
Thinkpad T30 2366-97U.
2006-03-17 12:43:35 +00:00
jmcneill
e651416a9e
Add 'iic* at viapcib?', commented out.
2006-03-17 12:25:01 +00:00
jmcneill
e4e8429c20
Add (commented out) definitions of viapcib attachments.
2006-03-17 12:22:14 +00:00
jmcneill
73e1e8a116
Add support for the VIA SMBus controller found on the VT8235 PCI-ISA
...
bridge.
2006-03-17 12:19:49 +00:00
martin
8d15124682
This test is highly dependend on local configuration - note some
...
pitfalls.
2006-03-17 11:33:24 +00:00
skrll
75eb73218c
KNF
2006-03-17 11:03:07 +00:00
yamt
848da92913
make duplicated code fragments into a function, pool_grow.
2006-03-17 10:09:25 +00:00
yamt
4038c2995b
uvm_km_check_empty: fix an assertion.
2006-03-17 09:37:55 +00:00
kochi
c736436079
acpica 20060310
2006-03-17 09:14:16 +00:00
erh
8e641f354a
Found by coverity issue 887. Check for NULL before using base_ph so
...
an interpreter that does not have PT_LOAD in the program header doesn't
crash the system.
2006-03-17 08:51:35 +00:00
kleink
63c0159af3
Move struct clockinfo (KERN_CLOCKRATE sysctl) from <sys/time.h> to
...
<sys/sysctl.h>.
2006-03-17 08:50:36 +00:00
erh
e1806cf352
Fix Coverity issue 1579. Check retval from getmntopts(). Use freemntopts().
2006-03-17 06:51:00 +00:00
erh
0ca5044c4a
Fix Coverity issue 1471. Shouldn't actually be problem, but the array
...
bounds checks to figure out which signal to issue were off by one.
2006-03-17 06:31:58 +00:00
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