apcu icon indicating copy to clipboard operation
apcu copied to clipboard

Also reject negative format values in APCuIterator

Open TysonAndre opened this issue 3 years ago • 2 comments

This would affect applications that accidentally or deliberately pass in negative values for $format (e.g. PHP_INT_MIN on 64-bit builds)

	if (format > APC_ITER_ALL) { /* 0xffffffff */
		apc_error("APCUIterator format is invalid");
		return;
	}

TysonAndre avatar Nov 13 '22 13:11 TysonAndre

Doesn't looks that this error condition is tested currently, add one?

nikic avatar Nov 13 '22 15:11 nikic

Looks like apc_099.phpt is failing.

nikic avatar Nov 14 '22 20:11 nikic