Check there is enough room for extension.

(Imported from upstream's 56b94a38b9a2197210a110c4a01a39ac75b34ce8)
1 file changed