Julia Lawall
077de1ad5a
[ARM] pxa: avoid NULL dereferencing in error handling of ssp.c
...
The assignments of res to the results of the two calls to
platform_get_resource make it impossible to use res in the error handling
code in the arguments to release_mem_region.
The semantic match that finds the former problem is as follows:
(http://coccinelle.lip6.fr/ )
// <smpl>
@r exists@
expression E, E1;
identifier f;
statement S1,S3;
iterator iter;
@@
if ((E == NULL && ...) || ...)
{
... when != false ((E == NULL && ...) || ...)
when != true ((E != NULL && ...) || ...)
when != iter(E,...) S1
when != E = E1
(
sizeof(E->f)
|
* E->f
)
... when any
return ...;
}
else S3
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
2010-05-11 17:24:59 +02:00
..
2010-05-06 11:12:11 +08:00
2010-03-30 22:02:32 +09:00
2010-05-06 08:16:34 +01:00
2010-05-01 11:33:00 +01:00
2010-05-01 11:32:57 +01:00
2010-04-21 08:45:21 +01:00
2010-03-30 22:02:32 +09:00
2010-04-14 11:22:44 +01:00
2010-04-07 21:11:27 +01:00
2010-02-12 17:27:52 +00:00
2010-04-07 11:03:06 -07:00
2010-03-08 20:21:04 +00:00
2010-02-12 17:27:52 +00:00
2010-04-07 21:11:28 +01:00
2010-02-25 22:09:41 +00:00
2010-03-01 09:15:15 -08:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-02-12 17:27:52 +00:00
2010-02-12 17:27:52 +00:00
2010-03-30 22:02:32 +09:00
2010-02-25 22:09:41 +00:00
2010-05-11 17:24:59 +02:00
2010-02-25 22:09:41 +00:00
2010-03-08 20:21:04 +00:00
2010-03-08 20:21:04 +00:00
2010-03-08 20:21:04 +00:00
2010-04-08 10:47:05 +01:00
2010-04-14 09:04:15 +02:00
2010-03-08 20:21:04 +00:00
2010-03-08 20:21:04 +00:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-01-27 22:03:00 +00:00
2010-04-27 08:27:26 -07:00
2010-04-27 08:27:26 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-05-11 17:24:58 +02:00
2010-04-28 22:21:52 +01:00
2010-03-30 22:02:32 +09:00
2010-03-08 20:21:04 +00:00
2010-03-30 22:02:32 +09:00
2009-12-09 19:43:33 -08:00
2010-03-12 16:04:50 -08:00
2010-02-21 23:10:35 +00:00
2010-03-15 22:43:12 +00:00
2010-03-07 22:56:19 +00:00
2010-03-15 23:11:41 +00:00
2010-03-15 23:11:41 +00:00
2010-03-12 16:04:50 -08:00
2010-03-08 20:21:04 +00:00
2010-05-01 11:32:59 +01:00
2010-02-12 17:27:52 +00:00
2010-03-15 12:06:47 +09:00
2010-03-30 22:02:32 +09:00
2010-03-08 20:24:11 +00:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-05-04 17:31:03 +01:00
2010-04-21 08:45:21 +01:00
2010-02-12 17:23:43 +00:00
2010-02-15 21:39:11 +00:00
2010-05-06 19:20:51 -03:00
2010-03-08 20:21:04 +00:00
2010-04-30 09:25:07 -07:00
2009-12-28 23:50:49 -05:00
2010-05-11 17:24:59 +02:00
2010-03-30 22:02:32 +09:00
2010-02-24 22:47:23 +00:00
2010-01-19 18:46:02 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-05-01 11:32:58 +01:00
2010-04-14 11:11:30 +01:00
2010-04-28 22:21:52 +01:00
2010-02-24 01:52:06 +00:00
2010-03-08 20:21:04 +00:00