size_t lraw = strlen(Inspect.raw) +1;
char *s;
+ if (i < 0 || (size_t)i >= INT_MAX / sizeof(struct I_ent)) break;
+ if (lraw >= INT_MAX - sizeof(fbuf)) break;
+
if (!fgets(fbuf, sizeof(fbuf), fp)) break;
lraw += strlen(fbuf) +1;
Inspect.raw = alloc_r(Inspect.raw, lraw);
, inc ? N_txt(WORD_include_txt) : N_txt(WORD_exclude_txt)));
return;
}
+ if (Curwin->osel_prt && strlen(Curwin->osel_prt) >= INT_MAX - (sizeof(raw) + 6)) {
+ return;
+ }
osel = alloc_c(sizeof(struct osel_s));
osel->inc = inc;
osel->enu = enu;