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

(-)sys/kern/kern_linker.c (-2 / +2 lines)
Lines 1852-1858 Link Here
1852
	 * XXX: we need to limit this number to some reasonable value
1852
	 * XXX: we need to limit this number to some reasonable value
1853
	 */
1853
	 */
1854
	if (vattr.va_size > LINKER_HINTS_MAX) {
1854
	if (vattr.va_size > LINKER_HINTS_MAX) {
1855
		printf("hints file too large %ld\n", (long)vattr.va_size);
1855
		printf("linker.hints file too large %ld\n", (long)vattr.va_size);
1856
		goto bad;
1856
		goto bad;
1857
	}
1857
	}
1858
	hints = malloc(vattr.va_size, M_TEMP, M_WAITOK);
1858
	hints = malloc(vattr.va_size, M_TEMP, M_WAITOK);
Lines 1870-1876 Link Here
1870
	intp = (int *)hints;
1870
	intp = (int *)hints;
1871
	ival = *intp++;
1871
	ival = *intp++;
1872
	if (ival != LINKER_HINTS_VERSION) {
1872
	if (ival != LINKER_HINTS_VERSION) {
1873
		printf("hints file version mismatch %d\n", ival);
1873
		printf("linker.hints file version mismatch %d\n", ival);
1874
		goto bad;
1874
		goto bad;
1875
	}
1875
	}
1876
	bufend = hints + vattr.va_size;
1876
	bufend = hints + vattr.va_size;

Return to bug 246688