/pidgin/main: c941cb2cedf7: Fix bound checking in request api

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Sun May 12 07:03:58 EDT 2013


Changeset: c941cb2cedf7bcae2c62c7d763868e95f7891198
Author:	 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date:	 2013-05-12 13:03 +0200
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/c941cb2cedf7

Description:

Fix bound checking in request api

diffstat:

 libpurple/request.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff --git a/libpurple/request.c b/libpurple/request.c
--- a/libpurple/request.c
+++ b/libpurple/request.c
@@ -918,8 +918,8 @@ purple_request_field_int_set_value(Purpl
 	g_return_if_fail(field != NULL);
 	g_return_if_fail(field->type == PURPLE_REQUEST_FIELD_INTEGER);
 
-	if (field->u.integer.value < field->u.integer.lower_bound ||
-		field->u.integer.value > field->u.integer.upper_bound) {
+	if (value < field->u.integer.lower_bound ||
+		value > field->u.integer.upper_bound) {
 		purple_debug_error("request", "Int value out of bounds\n");
 		return;
 	}



More information about the Commits mailing list