GNOME Bugzilla – Bug 646952
Fix the strlol return type mismatch :
Last modified: 2011-04-12 10:33:54 UTC
Created attachment 185356 [details] [review] Fix the return type mismatch in gstrtsptransport. The GstRTSPRange structure has both min and max with the type gint.In gstrtsptransport.c, the parse_range function is trying to parse the data with "strtol" which will return "long" . So it is better to check the return value with in G_MININT and G_MAXINT and remove the redundancy in code with split function .
Thanks. Committed with some code style fixes. commit fecd4a115405933a2c837ae0e10770c338adbbe6 Author: Sreerenj Balachandran <sreerenj.balachandran@nokia.com> Date: Wed Apr 6 22:57:41 2011 +0300 rtsptranport: ensure valid int result when parsing ranges Specifically, make sure that the return value of strtol is falling in between the range of G_MININT and G_MAXINT. Fixes #646952.