private boolean hasOffcut(Address startAddress, Address endAddress, Program program) {

		Address currentAddress = startAddress.next();
		while (currentAddress != null && currentAddress.compareTo(endAddress) <= 0) {

			if (program.getReferenceManager().hasReferencesTo(currentAddress)) {
				return true;
			}

			currentAddress = currentAddress.next();
		}

		return false;
	}
Verify that adding padding bytes won't violate boundaries or allow defined data
or instructions to be overwritten.

@param program		current program
@param stringEndAddress	strings' end address
@param padLength		number of pad bytes
@return	actual number of pad bytes to add to the string
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/string/StringsAnalyzer.java