--- Begin Message ---
Subject: |
[PATCH] Limit phonebook to 1000 entries (as on 6131) |
Date: |
Sun, 8 Jul 2007 21:32:56 -0700 |
---
common/phones/nk6510.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/common/phones/nk6510.c b/common/phones/nk6510.c
index 58135f4..e519f8a 100644
--- a/common/phones/nk6510.c
+++ b/common/phones/nk6510.c
@@ -2138,6 +2138,9 @@ static gn_error NK6510_ReadPhonebookLocation(gn_data
*data, struct gn_statemachi
dprintf("Reading phonebook location (%d)\n", location);
+ if (location > 1000)
+ return GN_ERR_INVALIDLOCATION;
+
req[9] = memtype;
req[14] = location >> 8;
req[15] = location & 0xff;
--
1.5.2.2
--- End Message ---
--- Begin Message ---
Subject: |
confirm 080199b0df45dee8163d4fdf4ed227008e00e248 |
If you reply to this message, keeping the Subject: header intact,
Mailman will discard the held message. Do this if the message is
spam. If you reply to this message and include an Approved: header
with the list password in it, the message will be approved for posting
to the list. The Approved: header can also appear in the first line
of the body of the reply.
--- End Message ---