From 6c05e18352e0aaceba28eccac7f8d07dd5557257 Mon Sep 17 00:00:00 2001 From: mid Date: Fri, 11 May 2001 00:43:41 +0000 Subject: [PATCH] - Thu May 10 17:37:23 PDT 2001 - I haven't had lunch yet. What should I have? - Wed May 9 15:21:51 PDT 2001 - I had pizza for lunch. --- CHANGES | 3 +++ src/login.c | 14 ++++++-------- utils/faimtest/faimtest.c | 4 ++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CHANGES b/CHANGES index 8717555..b7a35bb 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ No release numbers ------------------ + - Thu May 10 17:37:23 PDT 2001 + - I haven't had lunch yet. What should I have? + - Wed May 9 15:21:51 PDT 2001 - I had pizza for lunch. diff --git a/src/login.c b/src/login.c index 1687f4b..987c66a 100644 --- a/src/login.c +++ b/src/login.c @@ -813,19 +813,17 @@ faim_export int aim_sendmemblock(struct aim_session_t *sess, struct aim_conn_t * faimdprintf(sess, 0, "sendmemblock: WARNING: sending bad hash... you will be disconnected soon...\n"); /* - * This data is correct for AIM 3.5.1670, offset 0x1000, length 0 + * This data is correct for AIM 3.5.1670, offset 0x03ffffff, + * length 0x03ffffff (invalid). * * Using this block is as close to "legal" as you can get without * using an AIM binary. * - * For the moment, this is the MD5 hash of nothing. Yes, that's - * right. Nothing. AOL is smart. - * */ - i += aimutil_put32(tx->data+i, 0xd41d8cd9); - i += aimutil_put32(tx->data+i, 0x8f00b204); - i += aimutil_put32(tx->data+i, 0xe9800998); - i += aimutil_put32(tx->data+i, 0xecf8427e); + i += aimutil_put32(tx->data+i, 0x1df8cbae); + i += aimutil_put32(tx->data+i, 0x5523b839); + i += aimutil_put32(tx->data+i, 0xa0e10db3); + i += aimutil_put32(tx->data+i, 0xa46d3b39); } diff --git a/utils/faimtest/faimtest.c b/utils/faimtest/faimtest.c index 4c8db38..b294ca9 100644 --- a/utils/faimtest/faimtest.c +++ b/utils/faimtest/faimtest.c @@ -828,7 +828,7 @@ static int getaimdata(unsigned char **bufret, int *buflenret, unsigned long offs unsigned char *buf; int invalid = 0; - if (!bufret || !*bufret || !buflenret) + if (!bufret || !buflenret) return -1; if (modname) { @@ -857,7 +857,7 @@ static int getaimdata(unsigned char **bufret, int *buflenret, unsigned long offs return -1; } - if ((offset > st.st_size) || (offset > st.st_size)) + if ((offset > st.st_size) || (len > st.st_size)) invalid = 1; else if ((st.st_size - offset) < len) len = st.st_size - offset; -- 2.45.1