aboutsummaryrefslogtreecommitdiffstats
path: root/epan/range.c
AgeCommit message (Collapse)AuthorFilesLines
2011-06-25From Tony Trinh via bug 5895:stig1-12/+23
Add sanity checks in range.c git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37784 f5534014-38df-0310-8fa8-9805f1628bb7
2010-10-29Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4768 :morriss1-20/+51
Return an error if the user specifies a value in a range in excess of the range-specified maximum. Except when reading in preferences files which might have ranges that exceed the maximum (because we didn't use to check): in that case silently lower the out-of-range values. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34698 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-24range.c: ep_strbuf_new("") ==> ep_strbuf_new(NULL);wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28145 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-08More size_t fixes. Use a string buffer in range.c.gerald1-9/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27999 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-20Use the correct data type for the range string in the Win32 file dialog.gerald1-3/+5
Have value_is_in_range() to gracefully handle a NULL range. This might fix bug 3208. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27281 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-03We require GLib 2.4 or later, and they define G_MININT32, G_MAXIN32,guy1-8/+0
G_MAXUINT32, and G_MAXUINT64; don't check whether we need to define them ourselves. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25420 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21name changesahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-01convert to g_snprintf()sahlberg1-12/+8
also make range_convert_range() return an emem allocated string git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15660 f5534014-38df-0310-8fa8-9805f1628bb7
2004-10-17Have "range_convert_range()" dynamically allocate a string large enoughguy1-31/+41
to hold the representation of the range, rather than imposing a fixed-size limit on the string. Check for overflow in "strtoul()" - and use "strtoul()" rather than "strtol()" for range members. Clean up indentation. Get rid of an unnecessary include in <epan/range.h>. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12323 f5534014-38df-0310-8fa8-9805f1628bb7
2004-10-16Remove the fixed maximum number of subranges in a range_t; dynamicallyguy1-131/+191
allocate them to be large enough. Add checks that the numbers in the range fit in a guint32. Check the validity of a range before saving or printing, and report errors in an alert box. Clean up white space. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12320 f5534014-38df-0310-8fa8-9805f1628bb7
2004-10-16Make the nranges member of a range_t be the number of ranges, not theguy1-127/+93
number of ranges - 1, and update loops that iterate over all the ranges appropriately. Make "range_convert_str()" return a success/failure indication, and check it. Rewrite it to do more checks, and not to blithely ignore unknown characters. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12313 f5534014-38df-0310-8fa8-9805f1628bb7
2004-10-14From Jeff Morriss: PREF_RANGE preference type, for ranges of integers.guy1-1/+59
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12300 f5534014-38df-0310-8fa8-9805f1628bb7
2004-09-04We don't need "globals.h"; don't include it.guy1-2/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11896 f5534014-38df-0310-8fa8-9805f1628bb7
2004-09-04Split the pure range stuff out into separate files, exporting their ownguy1-0/+260
functions. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11892 f5534014-38df-0310-8fa8-9805f1628bb7