diff options
-rw-r--r-- | chat/i2cbd/distinfo | 4 | ||||
-rw-r--r-- | chat/i2cbd/patches/patch-src_access.c | 24 | ||||
-rw-r--r-- | chat/i2cbd/patches/patch-src_s__info.c | 15 |
3 files changed, 42 insertions, 1 deletions
diff --git a/chat/i2cbd/distinfo b/chat/i2cbd/distinfo index 1adbf08a8a4..06fc644d8d7 100644 --- a/chat/i2cbd/distinfo +++ b/chat/i2cbd/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.15 2015/11/03 01:20:19 agc Exp $ +$NetBSD: distinfo,v 1.16 2015/11/07 22:00:16 dholland Exp $ SHA1 (i2cbd-2.0_BETA5.tar.gz) = be219c5b6fa2413681214d756dee02c3cd252843 RMD160 (i2cbd-2.0_BETA5.tar.gz) = d48988fb175857370c2523c86e0e586decbe28ae @@ -7,3 +7,5 @@ Size (i2cbd-2.0_BETA5.tar.gz) = 59158 bytes SHA1 (patch-aa) = 0151f8e68be11e759425d2e9569df3d465c50931 SHA1 (patch-ab) = bca8ecb0f41be6405333f2bcf7722dc725ffc777 SHA1 (patch-ac) = ca8e6b7324a22fb9ecabf2374e34febb55196e28 +SHA1 (patch-src_access.c) = a75c4267be55e9316de63409dc5e1117345a0814 +SHA1 (patch-src_s__info.c) = 5e13e0b8934f45beac84be459ca85d9d089a4d3f diff --git a/chat/i2cbd/patches/patch-src_access.c b/chat/i2cbd/patches/patch-src_access.c new file mode 100644 index 00000000000..60bb299ca21 --- /dev/null +++ b/chat/i2cbd/patches/patch-src_access.c @@ -0,0 +1,24 @@ +$NetBSD: patch-src_access.c,v 1.1 2015/11/07 22:00:16 dholland Exp $ + +Fix bounding errors detected by OpenBSD's compiler. + +--- src/access.c~ 2006-05-11 03:44:52.000000000 +0000 ++++ src/access.c +@@ -341,7 +341,7 @@ nickreadmsg(int forWhom) + strncpy(from, data.data, data.size); + from[data.size] = '\0'; + } else +- strlcpy(from, "Server", LINE_SIZE); ++ strlcpy(from, "Server", sizeof(from)); + userdb->del(userdb, &key, 0); + + snprintf(kbuf, KEY_SIZE, "%s.message%d", u_tab[forWhom].nickname, i); +@@ -581,7 +581,7 @@ nickwrite (int forWhom, const char *pass + snprintf(line, LINE_SIZE, "Nick registered"); + sends_cmdout(forWhom, line); + +- strlcpy(u_tab[forWhom].realname, "registered", LINE_SIZE); ++ strlcpy(u_tab[forWhom].realname, "registered", sizeof(u_tab[forWhom].realname); + strlcpy(u_tab[forWhom].password, password, MAX_PASSWDLEN+1); + nickwritetime(forWhom, 0); + } diff --git a/chat/i2cbd/patches/patch-src_s__info.c b/chat/i2cbd/patches/patch-src_s__info.c new file mode 100644 index 00000000000..435f1fc66a6 --- /dev/null +++ b/chat/i2cbd/patches/patch-src_s__info.c @@ -0,0 +1,15 @@ +$NetBSD: patch-src_s__info.c,v 1.1 2015/11/07 22:00:16 dholland Exp $ + +Fix bounding errors detected by OpenBSD's compiler. + +--- src/s_info.c~ 2006-05-11 03:44:53.000000000 +0000 ++++ src/s_info.c +@@ -18,7 +18,7 @@ s_info(int n, int argc) + int TheirIndex; + + if (argc == 2) { +- strlcpy(TheirName, getword(fields[1]), 20); ++ strlcpy(TheirName, getword(fields[1]), sizeof(TheirName)); + + TheirIndex = find_user(TheirName); + |