W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 1999

bug in AddEmptyCellInRow?

From: Ly, An <An.Ly@CAI.COM>
Date: Tue, 28 Sep 1999 13:07:49 -0400
Message-ID: <F516E350BFC4D1118F7B00805FC14BC302CF7398@usilmse2.cai.com>
To: www-amaya@w3c.org

In AddEmptyCellInRow() in HTMLtable.c, if the `sibling' pointer is NULL, the
cell is not added and subsequently if it tries to add more cells (if more
columns are needed) in the next iteration in CheckAllRows(), the returned
new sibling is an uninitialized pointer which is then reinputted into the
function with potential to cause a crash.

I tried with 2.0 importing a row with some columns and a totally empty row,
and the table was not fixed. I think it did not crash because of the signal
handlers installed.

Is this assessment correct? If so, please add the fix to add the first cell
in the case where no sibling cell is available to start with.

Received on Tuesday, 28 September 1999 13:08:04 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:20 UTC