From f82a7a65e85f97580e934e98a58c1e2d050c55bf Mon Sep 17 00:00:00 2001 From: laforge Date: Wed, 16 Aug 2006 22:08:58 +0000 Subject: ugly workaround to avoid stack overflow git-svn-id: https://svn.gnumonks.org/trunk/librfid@1869 e0336214-984f-0b4b-a45f-81c69e1f0ede --- src/rfid_proto_tcl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/rfid_proto_tcl.c b/src/rfid_proto_tcl.c index e6735a8..2ed7a7c 100644 --- a/src/rfid_proto_tcl.c +++ b/src/rfid_proto_tcl.c @@ -259,7 +259,9 @@ tcl_do_pps(struct rfid_protocol_handle *h) { int ret; unsigned char ppss[3]; - unsigned char pps_response[1]; + /* FIXME: this stinks like hell. IF we reduce pps_response size to one, + we'll get stack corruption! */ + unsigned char pps_response[10]; unsigned int rx_len = 1; unsigned char Dr, Ds, DrI, DsI; unsigned int speed; -- cgit v1.2.3