From the IPSC RULE BOOK
The magazine is placed vertically upright on a flat surface, with the measurement taken from the flat surface upwards to the rear of the feed-lips, as illustrated. Only straight, rigid magazines are permitted (i.e. flexible, drum, "J", "L", "T" or similar shape magazines are prohibited)