private static int guessTableLength(Program program, Address address) {
		MemoryBlock block = program.getMemory().getBlock(address);
		if (block == null || !block.isInitialized()) {
			return -1;
		}
		Address endAddr = block.getEnd();
		Symbol nextsym = findNextImportedSymbol(program, address);
		if (nextsym != null && nextsym.getAddress().compareTo(endAddr) < 0) {
			endAddr = nextsym.getAddress();
		}
		return (int) endAddr.subtract(address);
	}
Perform a best guess at the length of an address table assuming that
another label (or end of block) can be used to identify the end.
@param program the program
@param address start of address table
@return maximum length of table or -1 if address does not reside
within an initialized memory block
Ghidra/Features/Base/src/main/java/ghidra/app/util/demangler/DemangledAddressTable.java