When calling from-consensus-buff? with an empty buffer, you get the runtime error:
Unchecked(CostComputationFailed("Error evaluating result of cost function ST000000000000000000002AMW42H.costs-3.cost_from_consensus_buff: Arithmetic(\"log2 must be passed a positive integer\")\n Stack Trace: \n"))
This is present in both epoch 3.2 and 3.3.
Example replication: (from-consensus-buff? bool 0x)
The expected behavior is that this function returns none, which is the normal return when deserialization fails.