Some Aspect Ratios Cause DivX Player to Crash
Summary
We will perform domain testing on DivX Player by inputting boundary and special case values in the Aspect ratio field. DivX Player is a video player that allows the user to modify the width to height ratio of the viewed content via the Aspect ratio function. Aspect ratios smaller than 1:150 cause the application to crash, unless the ratio is too small, in which case the input is ignored.
Application Description
DivX Player is available only for Windows and is the official player application for DivX video files. It also supports other common audio and video formats. (Source: www.divx.com).
For this test we will be focusing on Set Aspect Ratio.
Set Aspect Ratio can be used to change the width and height of DivX Player and the video that is currently being played. |
Test Design
This example demonstrates the use of Domain Testing.
We usually start domain testing by organizing the analysis of the variables in a table.

To perform this test we would try different boundary and special case values.
We would expect that the application handles all kinds of input and properly notifies the user, if the input is invalid.
Performing the Test


Results/Relevance
The application crashes.

After trying some different numbers for the width field, it turns out that the application crashes for ratios smaller than 1:150. But if it gets too small (e.g. 1:2147483648), the application just ignores the input and does not crash.
Even though the result is very unpleasant, it is very unlikely that the user will enter such aspect ratios on purpose. Such corner cases are a typical problem for Domain Testing.
Fortunately, we can use the information we gathered to perform similar tests in the area and find bugs that are more likely to occur in the real world (e.g. In Some Cases DivX Player Appears Frozen).
Similar Tests/Additional Notes



The application did not accept the last input. The interesting fact is that the error message (in red) says that the input must be positive. This can mean that either the application uses the same error message independent of the actual error or the value of the field has overflowed to the smallest negative value.

Just as suspected the height variable overflowed form 4294967297 to 1. It looks like there is no overflow protection for this field.

Configuration
Testing DivXNetworks' DivX Player v2.5.3 on: