repo.or.cz
/
smatch.git
/
search
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
first
·
prev
·
next
improve implied_condition_true() for pre and post ops
2010-03-04
D
a
n Ca
r
p
ent
e
r
improve i
m
plied_
c
ondition_t
r
ue
(
)
f
o
r pre and post ops
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-03-04
Dan C
a
rpen
t
er
while countd
o
wn
l
oops: handle loops
w
here the
start
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-03-04
Dan Carpenter
handle for
l
oop
s
where w
e
don'
t
know
t
he u
p
per limit
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-03-04
Da
n
Carpenter
smat
c
h_flow:
h
a
ndling pre loops
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-03-02
Dan Carpent
e
r
extra:
c
omparing something to zer
o
doesn't
mea
n
it
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-03-02
Dan
Carpente
r
check_ov
e
rflow: rela
x
r
u
le
s
on if (ptr < &array[max
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-03-02
Dan Carpen
t
er
extra:
handle loops like
whi
l
e(i-
-
) {
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-27
Dan C
a
rpenter
clean u
p
:
merge a cou
p
le function for handling for
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-27
Dan Carpenter
fi
x
handling
o
f (2 <
=
x) comparisons where the variable
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-25
Dan Carpen
t
er
check_sig
n
ed: disable m
o
s
t
of th
e
new
warnings
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-25
D
an
C
a
r
p
enter
get
_
t
ype() fix crash on getting point
e
r typ
e
s
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-24
Dan Carp
e
nte
r
get_value() more int to
long long mop u
p
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-24
Dan
C
a
rpenter
get_typ
e
() fix p
o
inter handling
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-24
Dan Carpenter
Fix
g
e
t_value()
for (
(
unsigned
i
nt) -1)
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-24
Dan
C
arpent
e
r
type_max(): handle un
s
igned long l
o
ng
.
(sort of)
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-24
Dan Carpenter
get rid of --rare option
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-24
Dan Car
p
en
t
er
ren
a
me
g
e
t_single_value_
f
rom_range()
=>
g
et_single_value_
f
ro
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-24
Dan Carp
e
n
t
er
for
l
o
ops: add a special ca
s
e for "for(i
= 0; i <
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-24
Dan
Carpenter
che
c
k_sign
e
d: check i
n
t type
s
as well
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-23
Dan Carpenter
smatc
h
.
c
:
use str
n
cpy(
)
instead of strcpy()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-23
D
a
n Carpe
n
ter
deb
u
g: rename __smatch_print_value() => __sma
t
ch_valu
e
()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-23
Dan Carpe
n
ter
c
heck_sig
n
ed: expr
-
>
op is type int not char
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-23
D
a
n
Carpenter
Introdu
c
e
get_fuzzy_m
i
n()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-23
Dan Car
p
enter
precedence: cut down a
few fals
e
p
o
sitives
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-23
Dan Carpenter
*new* check_le16:
p
r
int an err
o
r for double cpu_to_le16
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-23
Dan
C
a
rpent
e
r
*new
*
check_mod_timer:
p
rint
a
n
warn
i
ng if
s
o
meo
n
e
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-22
Da
n
Carpent
e
r
strip_expr(): r
e
move f
o
rce ca
s
ts
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-22
Dan Carpenter
k
p
atc
h
.
sh:
figure
the email addres
s
ou
t
automatically
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-19
Dan Carp
e
nter
*new* smatch_scripts/kpatch
.
sh: scri
p
t for maili
n
g
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-19
Dan
C
arpenter
Print f
e
wer
m
essag
e
s abou
t
unrea
c
hed
c
ode
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-19
D
a
n Carpen
t
er
s
m
atch_con
d
itions:
small cleanups and add debug code
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-19
Dan Carpenter
fix WARN_ON
h
an
d
l
i
ng some more
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-18
Dan Carpenter
smatch_
t
e
m
p
late: small changes to
comments
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-18
Dan
C
arpent
e
r
clean up the makefile a bit
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-18
Dan Carpenter
handle assignments
like: foo = x < 1
;
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-17
Dan Carpent
e
r
smatch
_
s
t
ates:
white
s
pace
c
h
ange
s
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-17
D
a
n
C
a
r
pent
e
r
smatch is supposed to be
u
sing "long l
o
ng" t
y
pes
internally
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-17
Dan Carpenter
n
e
w_bugs
.
sh:
b
ett
e
r fil
t
e
r
ing of smatch error
s
fro
m
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-17
Dan Car
p
enter
h
a
ndle stuf
f
like th
e
kernel'
s
WARN_ON() m
a
cro
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-17
Dan
C
arpenter
smatch_e
x
tra: fo
o
= !!x; do
e
s
not mo
d
i
f
y
x
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-17
D
an Carpente
r
handle assignments like: foo = !bar()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-17
Dan Carpenter
chec
k
_overfl
o
w: check
f
or mem
s
et() is
s
ues
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-17
Da
n
Carpenter
autom
a
tically generate
t
h
e list of functions which
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-16
Dan Carpenter
*new* smatch_
s
c
r
ipts/summarize_
e
rrs
.
sh:
s
c
r
ipt
for
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-16
D
an
C
ar
p
en
t
er
kernel: fix
x
fs false positi
v
e
s
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-15
Dan Carpenter
check_ov
e
rf
l
ow: handle: "int *p = &a
r
r
a
y;"
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-15
Dan C
a
r
penter
check_ov
e
rflow
:
fi
x
bug
in get_array_si
z
e_bytes()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-15
Dan
C
arpenter
p
u
sh some m
o
r
e
stuff
o
n the big_ex
p
ression_sta
c
k
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-15
D
a
n Carpe
n
ter
c
hec
k
_
overflow: handle casts like ((c
h
ar
*)
a
rray
)
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-15
Dan
C
a
r
penter
c
h
eck_overflow:
f
ix assigning array
s
to pointers
of
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-15
Dan
Carpenter
check_overfl
o
w: fix alignment bug in get_array_size_bytes()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-15
Da
n
Carpenter
check_overflow: prefer recent assi
g
nment
s
over t
h
e
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-15
Dan Carpenter
Add quotes ar
o
und string liter
a
ls in sma
t
ch outp
u
t
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-15
Dan
Carpe
n
t
e
r
check_overfl
o
w: update strc
p
y
() and strncpy
(
) ch
e
cks
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-15
Dan
C
a
rp
e
n
t
e
r
ke
r
ne
l
.
n
o
_retu
r
n_funcs: __reiserfs_panic doesn't retu
r
n
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-14
D
a
n
C
arpenter
check_ove
r
flow: store th
e
size in bytes inst
e
ad of
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-14
D
a
n
Ca
r
penter
check_
o
v
erflow: don't compl
a
in
a
bout
if
(
ptr < &array
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-14
Dan
C
arpenter
smatch_flow
:
change how the big
e
xpres
s
ion s
t
ac
k
works
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-14
Dan Carpenter
ch
e
ck_ove
r
flow: re
n
am
e
my_de
c
l_id => my_
s
ize_
i
d
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-14
Dan Carpenter
check_ov
e
rflow:
w
hite sp
a
ce changes
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-14
Dan
C
ar
p
enter
check_overf
l
ow: use the _expr() hooks inst
e
ad of doing
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-14
Dan
Carpe
n
ter
c
h
eck_o
v
erflow:
r
emove some
o
ld debugg
i
ng code
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-14
Dan
C
arpe
n
ter
ch
e
ck_ove
r
f
lo
w
:
rename dest
=
>
array_expr
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-14
Dan C
a
r
p
e
n
ter
check_overf
l
ow: g
e
t_initializer_
b
yt
e
s()
=
>
g
e
t_initializer_
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-14
Dan
Carpenter
check_overflow: optio
n
_
s
p
ammy => option_info
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-14
Dan Ca
r
pen
t
er
c
h
eck
_
over
f
low: handl
e
indexed array initi
a
l
izat
i
ons
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-14
D
an
C
a
r
penter
check_overflow:
f
ix end
l
ess
l
oop p
a
rsin
g
"
int
x =
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-14
D
a
n Carp
e
nter
fix
get_implied_ma
x
()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-13
Dan Carpente
r
check_ove
r
flow:
l
o
ts of
i
mprovements and also a validation
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-13
Da
n
Carpent
e
r
fix crash calling get_type(
)
on implic
i
tly defined
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-13
Dan C
a
r
pent
e
r
Add
s
m
a
t
c
h_
d
a
t
a/kernel
.
no_retur
n
_fu
n
cs
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-12
Dan
Carpenter
function hooks: get r
i
d of conditi
o
na
l
function hooks
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-12
Dan Car
p
ent
e
r
a
d
d smatch_scrip
t
s/
n
ew_bugs
.
s
h: prints the
bugs
introduced
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-12
Dan Carp
e
nter
err_
p
tr
_
dere
f
: update to
u
s
e newer
a
p
i
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-12
Dan
C
a
r
p
en
t
er
u
n
r
e
achable c
o
de:
enabl
e
b
y
default
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-12
Dan C
a
rpenter
show_unreacha
b
le
.
sh: add
-
k (k
e
rnel mode) -b (ignore
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-11
Dan Carpe
n
ter
unreachable
c
ode: work ar
o
u
nd g
c
c work arounds
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-11
Dan
Carpen
t
er
print an error messa
g
e abo
u
t unreached i
n
it
i
ali
z
ers
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-10
Dan
Carpen
t
e
r
che
c
k_stack:
t
w
eak the output a bit
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-10
Christopher
Li
P
oi
n
ter don't inheren
t
th
e
al
i
gn
m
ent from base type
commit
|
commitdiff
|
tree
2010-02-08
D
an Carpenter
New check
_
s
tack
.
c: warn if k
e
rnel code
p
uts to
o
m
u
ch
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-08
Dan Carpenter
Add
r
egister_projec
t
()
to check_list
.
h
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-02-01
Dan
Car
p
enter
upda
t
e the d
o
cum
e
ntation a bit
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-30
Da
n
Carpenter
check_
m
e
m
ory: only
l
oa
d
ker
n
el
.
frees
_
argument when
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-29
Dan Carp
e
nter
Crea
t
e
: smatch_project
.
c
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-29
Dan Ca
r
penter
bail if
t
hin
g
s are t
a
king too long
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-29
Dan Carpenter
add
smatch_s
c
ripts/fi
l
ter_kernel_deref_check
.
sh
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-29
Da
n
Carpenter
check_deref
_
check: do no
t
complain in loop pre conditions
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-28
Dan Carpent
e
r
tweak u
n
reachable code messages
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-27
Dan Carpenter
ch
e
ck_signed:
handle si
g
ned
1
bit values
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-27
Dan C
a
rpenter
check_sig
n
e
d: don
'
t complain about u
n
signed int x
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-27
Dan Carpenter
new fu
n
ction: t
y
pe_unsign
e
d()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-26
Dan C
a
r
p
en
t
e
r
partly replace
c
heck_null_deref
.
c
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-25
Dan Carpenter
modifi
c
ation hooks: only allow one hook per
v
ariable
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-25
Dan C
a
rpen
t
er
introduce: set_defa
u
lt_modif
i
cation_hook()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-25
Dan Carpenter
cl
e
anup:
g
e
t rid of smatch_
c
onta
i
ners
.
c
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-25
Da
n
Carpent
e
r
check_
n
u
ll_
d
ere
f
: o
n
ly the k
e
rnel cares abou
t
failed
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-23
Dan Carpenter
Fix OpenB
S
D compile
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-23
Dan
C
arpenter
c
he
c
k_s
i
g
n
e
d
:
c
l
ean ups
.
add ch
e
ck for impossibly
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2010-01-22
Dan Carpenter
make everythi
n
g use s
m
at
c
h_functi
o
n_has
h
tab
l
e
.
h
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
next