Go to file
Michael Thorpe 52465c6142
Fix NULL pointer issue with Word2000 empty attributes.
This appears to be an issue with Word2000 handling of empty attributes.

A reproduction case can be seen here:

```
$ cat test.html
<html xmlns:o="urn:schemas-microsoft-com:office:office">
    <body>
        <table>
            <img class="" />
        </table>
    </body>
</html>

$ ./tidy --tidy-mark no --word-2000 yes test.html
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 3 column 1 - Warning: <img> isn't allowed in <table> elements
line 2 column 1 - Info: <table> previously mentioned
line 1 column 57 - Warning: inserting missing 'title' element
line 3 column 1 - Warning: <img> lacks "alt" attribute
line 3 column 1 - Warning: <img> lacks "src" attribute
line 2 column 1 - Warning: trimming empty <table>
line 1 column 1 - Warning: <html> proprietary attribute "xmlns:o"
[2]    52405 segmentation fault  ./tidy --tidy-mark no --word-2000 yes test.html
```

This was called from 6f2fb6e0e7/src/clean.c (L1710).

(It is technically undefined behaviour to call strncmp with `NULL` pointers however).
2017-08-28 15:30:28 +01:00
build Some improvements in build-me.bat 2016-03-30 15:16:44 +02:00
console language help enhancements: 2016-03-23 14:56:36 +08:00
experimental Rename two headers. Issues #224 #223 #221 2015-06-30 20:06:02 +02:00
include Improve doxy comment formating - no code changes 2016-09-11 17:20:43 +02:00
localize Improve French translation. 2016-06-29 18:12:26 +02:00
man XSL for man handles <var>. Updated comment and sample string. 2016-02-17 17:20:02 +08:00
README Issue #454 - Clearly show `xsltproc' prereqisite, and other additions 2016-09-10 16:01:23 +02:00
src Fix NULL pointer issue with Word2000 empty attributes. 2017-08-28 15:30:28 +01:00
.gitignore Remove /test/ from the repository. Regression testing is still very important, and so 2016-02-16 11:20:22 +08:00
CMakeLists.txt Adjust for removal of LICENSE.txt 2016-07-11 20:40:20 +02:00
README.md - Removed documentation generation from this repository. 2016-02-05 14:59:12 +08:00
version.txt Issue #428 - Bump to 5.3.11 for this merge 2016-09-11 17:09:09 +02:00

HTML Tidy with HTML5 support

All READMEs and related materials can be found in README/.

For build instructions please see README/README.md.