View | Details | Raw Unified | Return to bug 198377
Collapse All | Expand All

(-)lib/libc/nls/msgcat.c (-1 / +1 lines)
Lines 401-407 Link Here
401
	 * it to the memory.  Probably, this will not be a problem given
401
	 * it to the memory.  Probably, this will not be a problem given
402
	 * that catalog files are usually small.
402
	 * that catalog files are usually small.
403
	 */
403
	 */
404
	if (st.st_size > SIZE_T_MAX) {
404
	if (st.st_size >= SIZE_T_MAX || st.st_size < 0) {
405
		_close(fd);
405
		_close(fd);
406
		SAVEFAIL(name, lang, EFBIG);
406
		SAVEFAIL(name, lang, EFBIG);
407
		NLRETERR(EFBIG);
407
		NLRETERR(EFBIG);

Return to bug 198377