mirror of https://github.com/adtools/clib2.git
Fixed calloc() and getopt_long()
Added integer overflow test to calloc(). Tiny change in getopt_long() so that the value pointed to by the "longindex" parameter is always initialized to an invalid index position (that being -1), instead of 0. The value of 0 can break some shell commands, most notably GNU wget.
This commit is contained in:
parent
053a61fc4b
commit
1b2c798467
|
@ -1,6 +1,6 @@
|
|||
#define VERSION 1
|
||||
#define REVISION 213
|
||||
#define DATE "4.12.2016"
|
||||
#define VERS "amiga.lib 1.213"
|
||||
#define VSTRING "amiga.lib 1.213 (4.12.2016)\r\n"
|
||||
#define VERSTAG "\0$VER: amiga.lib 1.213 (4.12.2016)"
|
||||
#define REVISION 214
|
||||
#define DATE "27.4.2017"
|
||||
#define VERS "amiga.lib 1.214"
|
||||
#define VSTRING "amiga.lib 1.214 (27.4.2017)\r\n"
|
||||
#define VERSTAG "\0$VER: amiga.lib 1.214 (27.4.2017)"
|
||||
|
|
|
@ -1 +1 @@
|
|||
213
|
||||
214
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define VERSION 1
|
||||
#define REVISION 213
|
||||
#define DATE "4.12.2016"
|
||||
#define VERS "c.lib 1.213"
|
||||
#define VSTRING "c.lib 1.213 (4.12.2016)\r\n"
|
||||
#define VERSTAG "\0$VER: c.lib 1.213 (4.12.2016)"
|
||||
#define REVISION 214
|
||||
#define DATE "27.4.2017"
|
||||
#define VERS "c.lib 1.214"
|
||||
#define VSTRING "c.lib 1.214 (27.4.2017)\r\n"
|
||||
#define VERSTAG "\0$VER: c.lib 1.214 (27.4.2017)"
|
||||
|
|
|
@ -1 +1 @@
|
|||
213
|
||||
214
|
||||
|
|
|
@ -1,3 +1,13 @@
|
|||
c.lib 1.214 (27.4.2017)
|
||||
|
||||
- Added integer overflow test to calloc().
|
||||
|
||||
- Tiny change in getopt_long() so that the value pointed to by longindex
|
||||
is always initialized to an invalid index position (that being -1),
|
||||
instead of 0. The value of 0 can break some shell commands, most notably
|
||||
GNU wget.
|
||||
|
||||
|
||||
c.lib 1.213 (4.12.2016)
|
||||
|
||||
- Added the __decay_unused_slabs() function which brings all currently
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define VERSION 1
|
||||
#define REVISION 213
|
||||
#define DATE "4.12.2016"
|
||||
#define VERS "debug.lib 1.213"
|
||||
#define VSTRING "debug.lib 1.213 (4.12.2016)\r\n"
|
||||
#define VERSTAG "\0$VER: debug.lib 1.213 (4.12.2016)"
|
||||
#define REVISION 214
|
||||
#define DATE "27.4.2017"
|
||||
#define VERS "debug.lib 1.214"
|
||||
#define VSTRING "debug.lib 1.214 (27.4.2017)\r\n"
|
||||
#define VERSTAG "\0$VER: debug.lib 1.214 (27.4.2017)"
|
||||
|
|
|
@ -1 +1 @@
|
|||
213
|
||||
214
|
||||
|
|
|
@ -296,7 +296,7 @@ static int getopt_long_internal(int argc, const char **argv, const char *optstri
|
|||
optp = strchr(optstring, c);
|
||||
|
||||
/* We never find a long option in a compound option */
|
||||
*longindex = 0;
|
||||
*longindex = -1;
|
||||
|
||||
/* Check if it's legal */
|
||||
if (c == ':' || (optp == NULL))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define VERSION 1
|
||||
#define REVISION 213
|
||||
#define DATE "4.12.2016"
|
||||
#define VERS "m.lib 1.213"
|
||||
#define VSTRING "m.lib 1.213 (4.12.2016)\r\n"
|
||||
#define VERSTAG "\0$VER: m.lib 1.213 (4.12.2016)"
|
||||
#define REVISION 214
|
||||
#define DATE "27.4.2017"
|
||||
#define VERS "m.lib 1.214"
|
||||
#define VSTRING "m.lib 1.214 (27.4.2017)\r\n"
|
||||
#define VERSTAG "\0$VER: m.lib 1.214 (27.4.2017)"
|
||||
|
|
|
@ -1 +1 @@
|
|||
213
|
||||
214
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define VERSION 1
|
||||
#define REVISION 213
|
||||
#define DATE "4.12.2016"
|
||||
#define VERS "m881.lib 1.213"
|
||||
#define VSTRING "m881.lib 1.213 (4.12.2016)\r\n"
|
||||
#define VERSTAG "\0$VER: m881.lib 1.213 (4.12.2016)"
|
||||
#define REVISION 214
|
||||
#define DATE "27.4.2017"
|
||||
#define VERS "m881.lib 1.214"
|
||||
#define VSTRING "m881.lib 1.214 (27.4.2017)\r\n"
|
||||
#define VERSTAG "\0$VER: m881.lib 1.214 (27.4.2017)"
|
||||
|
|
|
@ -1 +1 @@
|
|||
213
|
||||
214
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define VERSION 1
|
||||
#define REVISION 213
|
||||
#define DATE "4.12.2016"
|
||||
#define VERS "net.lib 1.213"
|
||||
#define VSTRING "net.lib 1.213 (4.12.2016)\r\n"
|
||||
#define VERSTAG "\0$VER: net.lib 1.213 (4.12.2016)"
|
||||
#define REVISION 214
|
||||
#define DATE "27.4.2017"
|
||||
#define VERS "net.lib 1.214"
|
||||
#define VSTRING "net.lib 1.214 (27.4.2017)\r\n"
|
||||
#define VERSTAG "\0$VER: net.lib 1.214 (27.4.2017)"
|
||||
|
|
|
@ -1 +1 @@
|
|||
213
|
||||
214
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define VERSION 1
|
||||
#define REVISION 213
|
||||
#define DATE "4.12.2016"
|
||||
#define VERS "unix.lib 1.213"
|
||||
#define VSTRING "unix.lib 1.213 (4.12.2016)\r\n"
|
||||
#define VERSTAG "\0$VER: unix.lib 1.213 (4.12.2016)"
|
||||
#define REVISION 214
|
||||
#define DATE "27.4.2017"
|
||||
#define VERS "unix.lib 1.214"
|
||||
#define VSTRING "unix.lib 1.214 (27.4.2017)\r\n"
|
||||
#define VERSTAG "\0$VER: unix.lib 1.214 (27.4.2017)"
|
||||
|
|
|
@ -1 +1 @@
|
|||
213
|
||||
214
|
||||
|
|
Loading…
Reference in New Issue