Added two more sanity checks into the FDI2RAW code.
This commit is contained in:
@@ -187,10 +187,14 @@ static uae_u8 temp, temp2;
|
|||||||
static uae_u8 *expand_tree (uae_u8 *stream, NODE *node)
|
static uae_u8 *expand_tree (uae_u8 *stream, NODE *node)
|
||||||
{
|
{
|
||||||
if (temp & temp2) {
|
if (temp & temp2) {
|
||||||
|
if (node->left) {
|
||||||
fdi_free (node->left);
|
fdi_free (node->left);
|
||||||
node->left = 0;
|
node->left = 0;
|
||||||
|
}
|
||||||
|
if (node->right) {
|
||||||
fdi_free (node->right);
|
fdi_free (node->right);
|
||||||
node->right = 0;
|
node->right = 0;
|
||||||
|
}
|
||||||
temp2 >>= 1;
|
temp2 >>= 1;
|
||||||
if (!temp2) {
|
if (!temp2) {
|
||||||
temp = *stream++;
|
temp = *stream++;
|
||||||
|
Reference in New Issue
Block a user