Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2014-09-04 | protocol/ArgParser: fix integer overflow in parse_range() | Max Kellermann | 1 | -2/+2 | |
Casting std::numeric_limits<unsigned>::max() to "long" leads to an overflow if sizeof(unsigned)==sizeof(long), and the result will be -1. This happens on some 32 bit architectures, for example ARM and WIN32. Workaround: use std::numeric_limits<int>::max(), which is the largest signed integer. Since sizeof(long)>=sizeof(int), this will never overflow. Fixes Mantis ticket 0004080. | |||||
2013-10-19 | *: use references instead of pointers | Max Kellermann | 1 | -6/+6 | |
2013-10-17 | *: use std::numeric_limits | Max Kellermann | 1 | -13/+10 | |
2013-01-03 | Client: rename the struct client to class Client | Max Kellermann | 1 | -6/+6 | |
2013-01-03 | client: convert to C++ | Max Kellermann | 1 | -3/+3 | |
2012-02-14 | command: move code to protocol/argparser.c | Max Kellermann | 1 | -0/+191 | |