+2000-11-02 Hrvoje Niksic <hniksic@arsdigita.com>
+
+ * url.c (parseurl): Remove possible reading past the end of
+ sup_protos[]. Spotted by Mark A. Mankins <Mankins_Mark@prc.com>.
+
2000-11-01 Hrvoje Niksic <hniksic@arsdigita.com>
* main.c (main): In case of opt.downloaded overflowing, print
}
/* If protocol is recognizable, but unsupported, bail out, else
suppose unknown. */
- if (recognizable && !sup_protos[i].name)
+ if (recognizable && i == ARRAY_SIZE (sup_protos))
return URLUNKNOWN;
else if (i == ARRAY_SIZE (sup_protos))
type = URLUNKNOWN;