From 133e9ec8d281ec721833a4d42d3354b7ace88a78 Mon Sep 17 00:00:00 2001 From: rhetorica Date: Mon, 5 Jan 2026 14:25:17 -0800 Subject: [PATCH] overflow protection --- ARES/application/news.lsl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ARES/application/news.lsl b/ARES/application/news.lsl index ab5c639..7147211 100644 --- a/ARES/application/news.lsl +++ b/ARES/application/news.lsl @@ -38,7 +38,7 @@ */ #include -#define CLIENT_VERSION "0.2.3" +#define CLIENT_VERSION "0.2.4" #define CLIENT_VERSION_TAGS "alpha" list feeds; @@ -171,7 +171,10 @@ main(integer src, integer n, string m, key outs, key ins, key user) { string headline; pipe_read(ins, headline); - if(~strpos(headline, " 200) // beyond the pale of what the UI can display + headline = substr(headline, 0, 199); + if(headline != gets(headlines, offset)) { headlines = alter(headlines, [headline], offset, offset); setdbl("news", ["headline"], jsarray(headlines));