bitmaskd runs out of memory when client requests a range of a billion UIDs
The program mbsync, which is the binary for isync, requests messages by running UID FETCH 1:1000000000
. It seems like bitmask tries to create a data structure with a billion elements to respond to this, and runs out of memory.