>From 770bb122ac96f6f87a4b0d93b98db683ae16eb36 Mon Sep 17 00:00:00 2001 From: Ernesto Ramos <ernesto@xxxxxx> Date: Wed, 24 Mar 2010 16:40:02 -0600 Subject: [PATCH] DSPBRIDGE: Avoid possible buffer overflow in load_lib Avoid possible buffer overflow in load_lib. Array pers_lib_table may use index 5. Signed-off-by: Ernesto Ramos <ernesto@xxxxxx> --- drivers/dsp/bridge/rmgr/nldr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/nldr.c b/drivers/dsp/bridge/rmgr/nldr.c index f796d37..d8ba424 100644 --- a/drivers/dsp/bridge/rmgr/nldr.c +++ b/drivers/dsp/bridge/rmgr/nldr.c @@ -1390,7 +1390,7 @@ static dsp_status load_lib(struct nldr_nodeobject *nldr_node_obj, * the deplib is already included */ if (!rootPersistent && persistent_dep_libs[i] && *nldr_node_obj->pf_phase_split) { - if ((nldr_node_obj->pers_libs) > MAXLIBS) { + if ((nldr_node_obj->pers_libs) >= MAXLIBS) { status = DSP_EDYNLOAD; break; } -- 1.6.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html