View | Details | Raw Unified | Return to bug 185964 | Differences between
and this patch

Collapse All | Expand All

(-)lib/libc/iconv/citrus_prop.c (-1 / +1 lines)
Lines 436-442 Link Here
436
			break;
436
			break;
437
		_memstream_ungetc(&ms, ch);
437
		_memstream_ungetc(&ms, ch);
438
		errnum = _citrus_prop_parse_element(
438
		errnum = _citrus_prop_parse_element(
439
		    &ms, hints, (void ** __restrict)context);
439
		    &ms, hints, (void ** __restrict)&context);
440
		if (errnum != 0)
440
		if (errnum != 0)
441
			return (errnum);
441
			return (errnum);
442
	}
442
	}
(-)lib/libiconv_modules/BIG5/citrus_big5.c (-2 / +2 lines)
Lines 181-187 Link Here
181
181
182
	if (start > 0xFF || end > 0xFF)
182
	if (start > 0xFF || end > 0xFF)
183
		return (EINVAL);
183
		return (EINVAL);
184
	ei = (_BIG5EncodingInfo *)ctx;
184
	ei = (_BIG5EncodingInfo *)*ctx;
185
	i = strcmp("row", s) ? 1 : 0;
185
	i = strcmp("row", s) ? 1 : 0;
186
	i = 1 << i;
186
	i = 1 << i;
187
	for (n = start; n <= end; ++n)
187
	for (n = start; n <= end; ++n)
Lines 199-205 Link Here
199
199
200
	if (start > 0xFFFF || end > 0xFFFF)
200
	if (start > 0xFFFF || end > 0xFFFF)
201
		return (EINVAL);
201
		return (EINVAL);
202
	ei = (_BIG5EncodingInfo *)ctx;
202
	ei = (_BIG5EncodingInfo *)*ctx;
203
	exclude = TAILQ_LAST(&ei->excludes, _BIG5ExcludeList);
203
	exclude = TAILQ_LAST(&ei->excludes, _BIG5ExcludeList);
204
	if (exclude != NULL && (wint_t)start <= exclude->end)
204
	if (exclude != NULL && (wint_t)start <= exclude->end)
205
		return (EINVAL);
205
		return (EINVAL);

Return to bug 185964