While the bag shouldn't exceed the maximum dimensions of 45 linear inches, there may be some leeway depending on the airplane you're flying on. Overhead compartment sizes vary per airplane type. If you fly on an airplane with small overhead compartments, you will likely get busted for having an oversized carry-on.