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
Try understand the implications from compound conditions.
2009-02-11
D
a
n
C
a
rpenter
Try
u
nderstand
t
he
implicat
i
o
n
s from compo
u
nd con
d
itions
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-11
Dan Ca
r
penter
Create a sta
t
e &merged
.
W
h
en we merg
e
stuff it is
n
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-10
Dan Carpenter
Ok
.
This time smat
c
h_implie
d
_r
e
ally_ does something
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-10
Dan
C
arpenter
Igno
r
e
cscope f
i
les
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-10
Dan Carpent
e
r
Small cleanups
.
(White
s
pace)
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-10
Dan Carpent
e
r
Whitesp
a
ce change
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-10
Da
n
Carpenter
Add some more l
o
cking fu
n
ctions
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-10
D
an Carpenter
F
i
x
implied pools so that at least it does something
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-10
Dan C
a
r
pen
t
er
It s
e
emed like tra
c
k
er_
l
ist would be
u
seful in a l
o
t
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-05
Dan C
a
rpent
e
r
Add a
R
EADME describ
i
ng smatch
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-05
D
an Carpenter
Add sc
r
ipt
t
o find NULL dereferences betwe
e
n f
u
nctions
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-05
Dan Car
p
e
n
ter
Fix u
s
a
ge
m
essage
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-05
Dan Carpenter
Chec
k
for malloc() a
s
well as kmalloc
(
)
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-05
Dan Carpenter
Fix segfault
w
h
en h
a
ndli
n
g impli
c
itly decl
a
re
d
function
s
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-04
Dan Carpenter
W
arn
when we d
o
n
'
t acq
u
ir
e
loc
k
s
when calling certain
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-04
Dan Carpenter
Try (a
n
d fail) to find m
e
mo
r
y
leaks
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-03
Dan Ca
r
penter
Almost print a message
when
yo
u
come
t
o unreacha
b
l
e
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-03
Dan Car
p
e
nt
e
r
Add check to look
for doubl
e
frees
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-03
Dan C
a
rp
e
n
ter
Add
checking for loc
k
_kernel()/
u
n
lock_kernel()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-02
Da
n
Carpenter
Make c
h
e
ck_l
o
c
k
ing
check
both spinlocks and semaphores
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-02
D
an
C
arpente
r
A
d
d
a ne
w
function slist_has_state()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-02
Dan
Ca
r
pen
t
er
If t
h
ere is
a
n i++
t
hen the
valu
e
of '
i
'
is
und
e
fined
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-02
D
a
n Carp
e
n
ter
Add a new check
_
l
o
c
king script
t
hat checks spin
l
oc
k
s
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-02
Da
n
Carpenter
Save the pos
s
ib
l
e states
instead of just merging
t
h
em
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-01-28
Dan Carpe
n
ter
I
g
nore
e
macs g
a
rbage
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-01-28
Dan Carpenter
Merg
e
branch 'm
a
st
e
r' into
p
ools5
commit
|
commitdiff
|
tree
2008-12-21
Dan
C
ar
p
enter
Add a comment sh
o
win
g
where the tests are
supposed
.
.
.
commit
|
commitdiff
|
tree
2008-12-21
D
a
n Carpenter
This is
l
ef
t
ov
e
r from O
c
tobe
r
as p
a
rt of the impli
e
d
.
.
.
commit
|
commitdiff
|
tree
2008-12-21
D
a
n
Carpe
n
t
er
Add g
e
t_p
o
s
sib
l
e
_states()
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-12-21
Da
n
Carpente
r
Stuff left
o
ver from October
.
Implied pools work
.
commit
|
commitdiff
|
tree
2008-10-19
Dan Carpent
e
r
We
could save some memory by not
a
l
lo
c
ating new memory
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-18
Dan Carpent
e
r
F
ix memory
l
e
a
k
.
Add mor
e
comments
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-17
Dan C
a
r
p
ente
r
Add a mer
g
e hook
.
Handle the situations like
:
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-17
Da
n
C
arpenter
strcmp()
d
oes
n
't
a
cce
p
t NULL
a
rguments
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-17
Dan Carpenter
rena
m
e
t
wo functions: get_
v
a
ri
a
ble_f
r
o
m
_expr_simple
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-17
Dan Carp
e
nter
get_variable_
f
rom_expr(
)
u
s
es a st
a
t
i
c buffer
and y
o
u
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-17
Dan Car
p
enter
Create a check_tem
p
late
.
c example script
t
hat lo
o
ks
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-15
Dan C
a
rpenter
M
ake get_all_
s
tates() not
s
egfa
u
lt e
v
e
ry t
i
m
e
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-15
Da
n
Carpenter
F
ix
get_v
a
lue(
)
to ret
u
rn n
e
gat
i
v
e
v
a
l
ues
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-15
Dan Carpenter
W
e on
l
y
e
ver
pass one
p
ara
m
eter into get_value()
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-15
Dan Carp
e
nte
r
Fix
get
_
al
l
_states
(
) t
o
match
the f
u
nction de
f
inition
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-15
Dan Carpenter
Re
m
ove add
_
st
a
te(
)
an
d
state_defined() defin
i
ti
o
ns
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-14
Dan C
a
rpe
n
ter
Cle
a
n up
.
Fix leak
.
My
p
r
o
b
l
em is
t
h
a
t
I don't understand
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-14
Dan Car
p
en
t
er
Initial co
m
mit of the "imp
l
ied
s
t
a
t
e p
o
ols" s
t
u
f
f
.
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-14
Dan Carpen
t
er
Doh
.
We ha
v
en't been
u
s
ing smatch_ext
r
a for a whil
e
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-13
D
a
n Ca
r
penter
Ge
t
rid of path_histo
r
y
.
It's ne
v
e
r
g
o
ing
t
o be us
e
d
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-13
Dan Car
p
enter
Make goto_stack st
a
tic
.
commit
|
commitdiff
|
tree
2008-10-13
Dan Carpent
e
r
Sp
e
ed up mer
g
e
_slist now that the slists are
ord
e
r
ed
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-11
Dan Carpenter
Insert stuff onto lists in a so
r
ted or
d
er
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-11
Dan Carpenter
Delete an unu
s
ed
function
m
erge_state_stack()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-08
Dan Car
p
e
n
ter
fix: if (*fo
o
) { (*foo)->bar; }
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-07
Dan C
a
rpenter
kmalloc() an
d
fri
e
nds don't a
l
ways retu
r
n
a non-nul
l
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-06
Dan Carpenter
The che
c
ks fro
m
he
r
e got merged into che
c
k
_null_deref
.
c
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-04
Dan C
a
r
p
e
nter
M
o
ve the stuff from check_de
r
efed_p
a
rams
.
c i
n
to
c
heck_null_d
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-04
Dan Carpenter
Fix bug in or_sli
s
t_stack()
.
if
(
a && b)
w
asn't b
e
ing
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-30
D
an
C
a
r
p
enter
Add a hoo
k
a
t the end of a
file
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-28
D
a
n
Car
p
e
n
ter
F
o
rgot another strip_expr()
call
.
.
.
:
/
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-28
Dan Car
p
e
n
ter
Handl
e
assignm
e
ents in
s
ide conditions better
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-28
D
an Carpenter
Only pr
i
nt something for
a
->foo and not a
.
foo
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-25
Dan C
a
rpenter
Ignor
e
array dec
l
ar
a
tio
n
s
.
Those
can't be NULL
o
bviously
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-23
Dan
Carpent
e
r
M
a
ke cur_slist static
.
It's only used in smat
c
h_states
.
c
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-22
Dan Carp
e
nter
W
h
ite s
p
ace changes
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-22
D
a
n
Carpent
e
r
U
s
e
m
e
r
g
e_slist() instead
o
f
trying to handle it
yourse
l
f
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-22
D
a
n Carpenter
__process_conti
n
ues() is supposed to be basically th
e
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-21
Dan C
a
rpenter
New smatch_ignore
.
c file
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-21
D
a
n Carpenter
(foo) = 1
is the same as foo = 1
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-21
Dan Ca
r
penter
G
e
nera
l
i
z
e stip_casts()
.
I
t's
n
ow called strip_expr
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-20
Dan
Carpenter
Ig
n
ore casts
.
foo(
(
int *)&bar)
is the same as fo
o
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-20
Dan Carpenter
Cr
e
a
t
e
d
show_state()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-20
Dan Carpenter
Ignore stuff like foo
.
bar
.
We only care about foo
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-20
Dan
C
arpent
e
r
W
hat happens before is th
a
t parameters would get assigned
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-19
Dan Carpe
n
te
r
M
is
s
ed a crashin
g
bu
g
in the int
=
> s
t
ruct conversion
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-19
Dan Carpenter
I
c
a
n'
t
believe I
was doing s
t
acks wrong this
w
ho
l
e
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-19
D
a
n Carpe
n
ter
Changed smatch state from bei
n
g an int to b
e
ing
p
ointer
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-17
Dan Carpenter
I
want to reuse the name
s
m
at
c
h_state
.
The current
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-17
Dan Ca
r
pent
e
r
Redo the
n
ull p
a
th thing
.
So l
o
n
g
as there is one
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-17
Dan
Carpente
r
Clean
u
p
.
Co
m
plicated is just
a boolean
.
S
e
t
it to
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-01
Dan Carpent
e
r
M
er
g
e branch 'devel'
commit
|
commitdiff
|
tree
2008-09-01
Dan
Carpenter
Save the
p
re conditions inside th
e
conditions so tha
t
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-01
Dan
Ca
r
pen
t
er
The main chang
e
here was to complete
l
y re
w
r
ite how
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-21
Dan Carpenter
Bre
a
k thing
s
o
u
t int
o
f
u
nctions a b
i
t
.
Cl
e
an ups
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-21
Dan Carpenter
Handle
while
and
f
o
r loops
s
l
i
ghtly bett
e
r
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-18
Dan Carp
e
nter
I
remove
d
nullify_p
a
th(
)
earlier b
u
t that was a mistake
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
Dan Carpenter
I don
'
t
t
hi
n
k the s
p
e
ci
a
l
_
kernel_macros(
)
function
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
Dan C
a
rpenter
Add a functi
o
n
t
o do a strcmp() with a symbol name
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
D
a
n
Carpenter
Remove everything to d
o
w
ith path_
i
d'
s
.
I couldn't
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
Dan Car
p
enter
Rep
l
a
ce
the
variable __negate
with the functio
n
__negate
(
)
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
Dan Carp
e
nter
S
mall clean up
.
Move the passing the whole con
d
ition
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
Dan Carp
e
nter
C
rap
.
I
me
a
n
t
to merge
t
h
i
s earlie
r
when I divided
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
D
a
n C
a
rpenter
Ad
d
a comment
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
Dan C
a
rpente
r
Moved all
the logic for handling
conditio
n
s into
a
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
Dan Carpen
t
er
Oops
.
I guess I d
e
le
t
e
d the wrong
l
ist
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
Dan Carpenter
Do
n
't pass
t
he content
s
of
s
izeof() t
o
the client
.
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-16
Dan Carpen
t
er
Improve
h
o
w
the deb
u
g info for merging sta
t
e
s get
s
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-16
D
a
n
Ca
r
penter
The main thin
g
is to handle zero
c
o
m
p
ari
s
on
s
be
t
ter
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-16
D
a
n
Carpenter
Re
m
ove unneeded c
o
de
.
This stu
f
f
i
s ha
n
dled i
n
sm
a
t
c
h_flow
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-16
Dan
C
a
r
pente
r
We need
t
o
be ab
l
e to break d
o
wn (foo != 0) f
o
r BUG_O
N
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-15
Dan
Ca
r
penter
I
d
entif
y
for(;;) t
y
pe loops a
s
forever loops
.
Thi
s
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-15
D
a
n Carpenter
Add support
for BUG_ON
(
)
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-15
D
an
C
arpen
t
er
W
h
at I've seen
i
s st
u
ff like
t
his:
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
next