From 193fddd02aebdba9173f1d1423c3b43791a6260e Mon Sep 17 00:00:00 2001 From: Jonathan Yap Date: Thu, 25 Nov 2010 06:11:43 -0500 Subject: Fix link error: unsigned char const TASK_INVENTORY_ASSET_KEY --- indra/llinventory/llinventory.cpp | 2 -- indra/llinventory/llinventorydefines.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'indra/llinventory') diff --git a/indra/llinventory/llinventory.cpp b/indra/llinventory/llinventory.cpp index bda76eac80..a3caf79519 100644 --- a/indra/llinventory/llinventory.cpp +++ b/indra/llinventory/llinventory.cpp @@ -61,8 +61,6 @@ static const std::string INV_FOLDER_ID_LABEL_WS("category_id"); ///---------------------------------------------------------------------------- /// Local function declarations, constants, enums, and typedefs ///---------------------------------------------------------------------------- -const U8 TASK_INVENTORY_ITEM_KEY = 0; -const U8 TASK_INVENTORY_ASSET_KEY = 1; const LLUUID MAGIC_ID("3c115e51-04f4-523c-9fa6-98aff1034730"); diff --git a/indra/llinventory/llinventorydefines.cpp b/indra/llinventory/llinventorydefines.cpp index 575331a263..c2b035f7cf 100644 --- a/indra/llinventory/llinventorydefines.cpp +++ b/indra/llinventory/llinventorydefines.cpp @@ -28,4 +28,4 @@ #include "llinventorydefines.h" const U8 TASK_INVENTORY_ITEM_KEY = 0; -const U8 TASK_INVENTORY_ASSET_KEY = 1; +const U8 TASK_INVENTORY_ASSET_KEY = 1; \ No newline at end of file -- cgit v1.2.3 From 732b1f748eb1844eb97ab2293ebc3b1bebb0c9e7 Mon Sep 17 00:00:00 2001 From: Jonathan Yap Date: Thu, 25 Nov 2010 13:45:05 -0500 Subject: Forgot to give myself credit. --- indra/llinventory/llinventorydefines.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/llinventory') diff --git a/indra/llinventory/llinventorydefines.cpp b/indra/llinventory/llinventorydefines.cpp index c2b035f7cf..575331a263 100644 --- a/indra/llinventory/llinventorydefines.cpp +++ b/indra/llinventory/llinventorydefines.cpp @@ -28,4 +28,4 @@ #include "llinventorydefines.h" const U8 TASK_INVENTORY_ITEM_KEY = 0; -const U8 TASK_INVENTORY_ASSET_KEY = 1; \ No newline at end of file +const U8 TASK_INVENTORY_ASSET_KEY = 1; -- cgit v1.2.3 From 91021bf905286bcb5ce0f14e19a55b4800a9ce99 Mon Sep 17 00:00:00 2001 From: Kadah_Coba Date: Tue, 14 Dec 2010 12:30:32 -0800 Subject: VWR-24263: Crash fix for notecards with negative text length --- indra/llinventory/llnotecard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/llinventory') diff --git a/indra/llinventory/llnotecard.cpp b/indra/llinventory/llnotecard.cpp index 62829c284f..69152cefe0 100644 --- a/indra/llinventory/llnotecard.cpp +++ b/indra/llinventory/llnotecard.cpp @@ -199,7 +199,7 @@ bool LLNotecard::importStream(std::istream& str) return FALSE; } - if(text_len > mMaxText) + if(text_len > mMaxText || text_len < 0) { llwarns << "Invalid Linden text length: " << text_len << llendl; return FALSE; -- cgit v1.2.3