SHA-256 has a block size of 64 bytes
SHA-512 has a block size of 128 bytes
In both cases, we use the block size of SHA-1 which is 20 bytes. Furthermore the other algorithms use 128 bytes to store the password. This is "lucky" in the sense that for SHA-512 it will store enough information, but is inefficient in the other cases and provides no security benefit.
SHA-256 has a block size of 64 bytes
SHA-512 has a block size of 128 bytes
In both cases, we use the block size of SHA-1 which is 20 bytes. Furthermore the other algorithms use 128 bytes to store the password. This is "lucky" in the sense that for SHA-512 it will store enough information, but is inefficient in the other cases and provides no security benefit.