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
Add a comment showing where the tests are supposed to go.
2008-12-21
Dan
Carpen
t
er
Add
a
comment
s
h
o
wing whe
r
e the t
e
sts
are supposed
.
.
.
commit
|
commitdiff
|
tree
2008-12-21
Dan Carp
e
nter
T
h
i
s
is
l
eft over from Octo
b
er
as p
a
r
t
of th
e
i
mpli
e
d
.
.
.
commit
|
commitdiff
|
tree
2008-12-21
Dan C
a
rpente
r
Add get_p
o
ssib
l
e_
s
tat
e
s()
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-12-21
Dan Carp
e
nter
Stuff left over from Octo
b
er
.
Implied pools work
.
commit
|
commitdiff
|
tree
2008-10-19
Dan Carpent
e
r
We co
u
ld save some memor
y
by not allocating new memory
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-18
Da
n
Carpen
t
er
Fix memo
r
y leak
.
Add
m
ore com
m
en
t
s
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-17
Dan Car
p
enter
Add a me
r
ge hook
.
Handle the situ
a
tions
like:
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-17
Dan Carpente
r
s
trcmp() doesn't accept NULL argum
e
nts
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-17
Da
n
Carpenter
rename two functions:
get_variable_f
r
om_expr_simple
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-17
Dan Carpenter
get_var
i
a
b
le_from_expr() uses
a
static
b
uffer and yo
u
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-17
D
a
n Carpe
n
ter
Crea
t
e a check_template
.
c
e
xamp
l
e scri
p
t t
h
at looks
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-15
Dan Car
p
enter
Make ge
t
_
a
l
l
_states() no
t
segfault every
t
i
me
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-15
Dan
C
arpente
r
Fix get_val
u
e() to return nega
t
ive values
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-15
Dan Ca
r
p
e
nter
We only eve
r
pass one parameter into
g
et_value
(
)
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-15
D
a
n
Carpenter
Fix get_all_states() to match
the function defin
i
t
i
on
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-15
Dan Carpen
t
er
Remove add_state() and state_defined() defini
t
ions
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-14
Dan
C
arp
e
nter
Clea
n
up
.
Fix leak
.
My pro
b
l
e
m
i
s th
a
t I
d
on't unde
r
stand
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-14
Dan Carpente
r
Ini
t
ial
c
ommit of the "im
p
lied
sta
t
e
p
o
ols" stuf
f
.
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-14
Dan
C
arpenter
D
oh
.
We
h
a
v
en't been usi
n
g
s
match_ext
r
a fo
r
a
w
h
ile
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-13
Dan Car
p
e
nter
Get r
i
d of
path_history
.
It's never going to be used
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-13
Dan Carpe
n
t
e
r
Make goto_s
t
ack
s
tatic
.
commit
|
commitdiff
|
tree
2008-10-13
Dan Carpen
t
e
r
Spee
d
up
m
e
r
ge_slist now that th
e
slists are
or
d
ere
d
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-11
Dan
C
arpe
n
te
r
Insert st
u
ff onto lists in a
s
orted order
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-11
Dan
C
a
rpente
r
De
l
e
t
e an
un
u
s
e
d functio
n
me
r
ge_state_stack
(
)
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-08
Dan Carpenter
fix: if
(*foo)
{
(*foo
)
->bar; }
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-07
Dan C
a
rpenter
kma
l
loc()
and
friends don't always
r
eturn a non-nu
l
l
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-06
Dan Ca
r
pente
r
The checks from here got m
e
rged int
o
c
heck_null_d
e
r
e
f
.
c
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-04
Dan Carpe
n
ter
Move
t
he stuff
fr
o
m check_derefed_par
a
ms
.
c into check_null_d
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-10-04
Dan Ca
r
penter
Fix bug in
o
r_sl
i
st_
s
tack()
.
i
f
(
a && b) was
n
'
t
being
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-30
Dan
C
a
r
pent
e
r
Add
a
hook at the
end of a fi
l
e
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-28
D
a
n Car
p
ente
r
Forgot another strip_expr() ca
l
l
.
.
.
:/
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-28
Dan Carpenter
Hand
l
e
assignmeents inside
conditi
o
ns bett
e
r
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-28
Dan Carpente
r
O
n
l
y pri
n
t som
e
thing for a->foo and not
a
.
foo
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-25
Dan Carpenter
Ign
o
re array
d
e
c
larations
.
Those can't
be NULL obviously
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-23
Dan Carpe
n
ter
M
a
ke cur
_
sli
s
t
s
tatic
.
It's on
l
y
us
e
d
i
n
sma
t
ch_stat
e
s
.
c
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-22
D
an Carpenter
W
hi
t
e space changes
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-22
Dan
Carpe
n
ter
Use merge_slist() instead of
tr
y
ing to handle it yourself
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-22
Dan Ca
r
penter
__
p
rocess_continues() is supposed to
b
e bas
i
cally
t
he
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-21
Dan Carpenter
New smatc
h
_ignore
.
c file
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-21
Dan Carp
e
nte
r
(fo
o
) =
1
is the same as foo
=
1
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-21
Da
n
Carp
e
nter
G
e
neralize stip_cas
t
s()
.
I
t
'
s now c
a
lled strip_exp
r
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-20
Da
n
C
arpenter
Ig
n
ore
ca
s
ts
.
foo((int *)&bar) i
s
t
h
e
same as foo
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-20
D
a
n
Carpenter
Created
sh
o
w_state()
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-20
Da
n
C
arpenter
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
Carpente
r
W
h
at happens before is
that parame
t
ers
w
ould get assigned
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-19
Dan Carpen
t
er
M
issed a crashing bug in the
int
=
> s
t
ruct conversion
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-19
Dan Carpenter
I can't b
e
lie
v
e
I was doing stacks
w
ron
g
this whole
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-19
D
an Carpen
t
er
Chang
e
d
s
match state fro
m
bei
n
g an i
n
t to
being poin
t
e
r
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-17
Dan Carpenter
I wa
n
t
t
o reus
e
the name sm
a
tch_state
.
The current
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-17
Dan
C
arpen
t
er
Redo t
h
e null path thing
.
S
o
lo
n
g as there
is
one
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-17
D
a
n Carpenter
Clean up
.
Compl
i
cat
e
d is just a bool
e
an
.
Set it to
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-17
Dan Ca
r
penter
Arra
y
s are complicated
so they shouldn't
be
returned by
Signed-off-by:
Dan Carpenter
<dcarpenter@error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-17
D
a
n Ca
r
pen
t
er
If we call se
t
_
s
tate from insid
e
a
condition then
i
t
.
.
.
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-17
D
an Carpenter
If
t
he p
o
i
n
t
e
r
is initialized t
o
non-null th
e
n
set
.
.
.
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-15
Da
n
Carpenter
ignor
e
t
he smat
c
h binary
.
Signed-off-by:
Dan Carpenter
<dcarpenter@error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-15
Dan
C
arpent
e
r
When we me
r
ge 2 slists w
e
need to d
e
al with the case
.
.
.
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-14
Dan Carpen
t
er
Clean ups
.
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-13
D
an Carpente
r
Add
nullif
y
the path when you ha
v
e for(;
;
);
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-13
Dan
C
arpenter
Merge branch '
l
s'
i
n
to ultratmp
commit
|
commitdiff
|
tree
2008-09-13
Da
n
Carpente
r
Merge b
r
an
c
h 'unnullify' into ls
commit
|
commitdiff
|
tree
2008-09-13
Dan Carpenter
Lots of do while(0) loops don't
c
all break so i
t
doesn
.
.
.
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-13
D
a
n Ca
r
pent
e
r
Remove unneeded che
c
k
.
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-08
D
a
n
C
a
rpenter
Fix or_slist_s
t
ack()
.
B
efore it just
s
aved
one stack
.
.
.
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-08
Dan Carp
e
nt
e
r
cr
a
p cra
p
crap
.
do not use
.
commit
|
commitdiff
|
tree
2008-09-07
Dan Carpent
e
r
Clean ups and a
d
d
so
m
e __unn
u
llify_pa
t
h stu
f
f
.
Hopefully
.
.
.
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-07
Dan Car
p
enter
Smal
l
cleanup
.
goto_stack sho
u
ld only be used in smatch_sta
.
.
.
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-07
Dan
Ca
r
pe
n
t
er
Cl
e
an
u
p
s
.
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-06
D
an Ca
r
penter
Fix
b
u
g saving the
f
a
lse_on
l
y stack
.
Before code like
.
.
.
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-06
D
an C
a
rpenter
T
hi
s
is the st
a
rt of the sm
a
t
c
h_extra
s
tuff
.
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-06
Da
n
Car
p
enter
Fix overwrite_slist() s
o
it takes a pointer to a pointer
.
.
.
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-06
Da
n
C
arpenter
Make
s
match_extra de
p
end o
n
s
match
.
h
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-02
Dan Carpe
n
te
r
M
ove is_zero() to smatch_helpe
r
.
c
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-01
Dan C
a
r
p
e
n
ter
Fix
a
big
b
ug
.
get_st
a
te_slist() was always getting
.
.
.
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-01
Dan Carpenter
Merge
.
.
/
.
.
/s
m
at
c
h
/
devel
Signed-off-by:
Dan Carpenter
<dcarpenter@usbsys.site>
commit
|
commitdiff
|
tree
2008-09-01
Dan Ca
r
penter
Merge branch 'devel'
commit
|
commitdiff
|
tree
2008-09-01
Dan C
a
rpenter
Save the pre condi
t
ions inside
the conditions so that
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-09-01
Dan Ca
r
penter
The
m
ai
n
c
h
an
g
e he
r
e
w
as to
c
o
m
pletely re
w
rite how
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-21
Dan Carpenter
Break things out into functions a bit
.
Clean ups
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-21
Dan C
a
r
p
enter
Handle while
and f
o
r
l
oops
s
light
l
y
b
e
tter
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-18
Da
n
Car
p
enter
I removed nul
l
i
fy_
p
ath(
)
earlier
b
ut that
w
as
a
mista
k
e
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-17
Dan C
a
r
p
enter
I don't
th
i
nk the special_kernel_
m
acros() func
t
ion
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-17
D
an Carpenter
Add a fu
n
ction to do
a
s
trc
m
p(
)
with
a s
y
m
b
o
l n
a
me
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-17
D
an Carpen
t
er
Remove everythi
n
g
to
do wi
t
h path_id'
s
.
I coul
d
n
't
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-17
Dan Carpenter
Replace th
e
variable __neg
a
te
w
it
h
the functi
o
n __negate
(
)
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-17
Dan Carpenter
Small clean
up
.
Move the passing
t
h
e whole
co
n
dition
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-17
Dan Ca
r
penter
Crap
.
I
meant to merg
e
this earlier when I divided
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-17
D
a
n Ca
r
penter
Add a com
m
ent
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-17
Dan
Carpenter
Moved all the logic for handli
n
g
conditions into
a
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-17
D
a
n Carp
e
n
t
er
Oops
.
I g
u
ess I delete
d
the w
r
o
n
g
l
ist
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-17
Dan Carpenter
Don't
pa
s
s the contents of sizeof() to the client
.
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-16
Dan Carpenter
I
m
p
ro
v
e how the debug info for me
r
ging s
t
ates gets
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-16
Dan Carpe
n
ter
The main thing
i
s to han
d
le
z
e
r
o
comparisons bett
e
r
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-16
Dan Ca
r
penter
Remove un
n
e
e
ded
c
ode
.
This st
u
ff is handled in smatch_flow
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-16
Dan Carpe
n
ter
W
e need to be
abl
e
to break down (foo != 0) for BUG_ON
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-15
D
an
Carpenter
Identify fo
r
(;;)
t
ype loops as forev
e
r lo
o
ps
.
This
.
.
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-15
Dan Carpenter
Add support
f
or B
U
G
_
O
N
()
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-15
Da
n
Carpenter
What
I
've seen is
stuff like this:
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-15
Dan Carpenter
Anything that we don't
h
an
d
le is obviously
c
o
m
p
licate
d
.
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
2008-08-15
Dan Carpen
t
er
Merge branch
'devel'
commit
|
commitdiff
|
tree
2008-08-15
Dan Carpe
n
ter
Add a comment
to get_variable_from_expr_
s
imple(
)
Signed-off-by:
Dan Carpenter
<error27@gmail.com>
commit
|
commitdiff
|
tree
next