static AddressSet getSingleStringEndAddrRange(Program program, AddressSetView addrs) {
		Address minAddr = addrs.getMinAddress();
		MemoryBlock memblock = program.getMemory().getBlock(minAddr);
		Address endAddr = memblock != null ? memblock.getEnd() : minAddr;
		if (endAddr.subtract(minAddr) > MAX_SANE_STRING_LENGTH) {
			endAddr = minAddr.add(MAX_SANE_STRING_LENGTH);
		}
		return new AddressSet(minAddr, endAddr);
	}
Iterator that searches for locations that could be strings and returns 
{@link StringDataInstance}s representing those locations.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/strings/UndefinedStringIterator.java