Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Prepare for release of 0.1.5release/0.1.5 | Daniel Silverstone | 2016-11-19 | 1 | -1/+1 |
| | |||||
* | Test data: Move file to correct place. | Michael Drake | 2016-10-26 | 1 | -0/+0 |
| | |||||
* | Merge branch 'tlsa/fix-gradients' | Michael Drake | 2016-10-26 | 4 | -120/+165 |
|\ | |||||
| * | Test data: Add SVG with missing stroke gradient definition.tlsa/fix-gradients | Michael Drake | 2016-10-26 | 1 | -0/+10 |
| | | |||||
| * | Parse: Ensure consumed characters count is initiliased. | Michael Drake | 2016-10-26 | 1 | -0/+1 |
| | | |||||
| * | Parse: Make the parse state have two sets of gradient details. | Michael Drake | 2016-10-26 | 3 | -113/+152 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One for fills and another for strokes. This stops an SVG such as <svg viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg"> <defs> <linearGradient id="foo"> <stop stop-color="#69f" offset="0"/> <stop stop-color="#468" offset="1"/> </linearGradient> </defs> <path fill="url(#foo)" stroke='url(#bar)' d='M10 10 H 90 V 90 H 10 Z' /> </svg> from getting its fill gradient details trampled when we reset the gradient for the the missing bar gadient definition. Note, we only handle linearGradient on the fill anyway. | ||||
| * | Parse: Avoid strndup with unchecked return value. | Michael Drake | 2016-10-26 | 1 | -3/+3 |
| | | |||||
| * | Parse: Remove explicit init of gradient state; gets memset anyway. | Michael Drake | 2016-10-26 | 1 | -5/+0 |
|/ | |||||
* | add polyline test case with floating point colour percentages | Vincent Sanders | 2016-09-11 | 1 | -0/+9 |
| | |||||
* | SVG dictionary for use with AFL tool | Vincent Sanders | 2016-09-11 | 1 | -0/+170 |
| | |||||
* | Add test set derived from AFL | Vincent Sanders | 2016-09-11 | 2613 | -0/+170475 |
| | | | | | | | Generated with AFL using custom dictionary then minimised with cmin and tmin tools to be the smallest test set possible The run used two thousand processor hours on a 24way xeon 2.3GHz system | ||||
* | prevent division by zero for gradient with no points and add test | Vincent Sanders | 2016-08-31 | 2 | -2/+53 |
| | |||||
* | improve test suite runner | Vincent Sanders | 2016-08-31 | 1 | -4/+61 |
| | |||||
* | add crash test generated with AFL | Vincent Sanders | 2016-08-27 | 1 | -0/+22 |
| | |||||
* | cope with lack of root svg element | Vincent Sanders | 2016-08-24 | 1 | -0/+6 |
| | |||||
* | add file output to test decoder | Vincent Sanders | 2016-08-23 | 3 | -150/+192 |
| | |||||
* | Update component version for releaserelease/0.1.4 | Vincent Sanders | 2016-01-03 | 1 | -2/+2 |
| | |||||
* | Fix build with certain C libraries. | Michael Drake | 2015-11-01 | 1 | -1/+1 |
| | |||||
* | enable decode tests for svg files | Vincent Sanders | 2015-09-02 | 10 | -2/+26 |
| | | | | These svg files have caused the library to crash and to render poorly. | ||||
* | Fix reallocation of path buffer length to cope with differng path lengths | Vincent Sanders | 2015-08-23 | 1 | -21/+41 |
| | |||||
* | Update CFLAGS to avoid deprication warning for glibc 2.21 and later. | Vincent Sanders | 2015-03-22 | 1 | -2/+9 |
| | |||||
* | Fix paths for Haiku. | Adrien Destugues | 2015-03-22 | 2 | -2/+2 |
| | |||||
* | Update the component version for releaserelease/0.1.3 | Vincent Sanders | 2015-03-08 | 1 | -1/+1 |
| | |||||
* | Ensure path generation does not overrun allocated storage. | Vincent Sanders | 2015-01-15 | 1 | -6/+50 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes bug #2251 which was caused by the svg: <svg width="11" height="11" id="support-entry-icon" y="3389"><g><g><path fill-rule="evenodd" clip-rule="evenodd" fill="#D6D6D6" d="M0,0v11h11V0H0z M10,10H1V1h9V10z M9,3H2v1h7V3z M9,5H2v1h7V5z M9,7H2v1h7V7z"/></g></g></svg> The svg was causing more path elements to be generated in the internal representation than space was allocated for and overrunning heap blocks. The path element parsing was using a fixed size allocation for the path elements and never bounds checked. Further it did not cope with zero length paths (which the spec says are permitted). It was also grossly overallocating for the common case. This changes the path element array to be bounds checked and then extended if required, the initial allocation is generally sufficient and in testing very few resizes occurred. The reallocation strategy grows the element storage by 2.5 each time this means even in the degenerate case very few reallocations are required. In testing no more than a single reallocation has been observed. The final path element array will always be reallocted to the minimum required size. This reduces overall memory usage which is useful with complex scenes. | ||||
* | Update README to cover dependancies and core buildsystem | Vincent Sanders | 2014-12-07 | 3 | -47/+91 |
| | | | | | Fix various issues with the test target and update the documentation to be more correct. | ||||
* | Fix up for new buildsystem | John-Mark Bell | 2014-11-16 | 1 | -2/+2 |
| | |||||
* | fix parsing of whitespace in transform operators | Vincent Sanders | 2014-10-23 | 1 | -18/+18 |
| | | | | | | | | The SVG spec for the transform attribute allows whitespace in places that were causing the %n specifier in the ssanf to return 0 as the match failed before it completed the parse. http://www.w3.org/TR/SVG/coords.html#TransformAttribute | ||||
* | Fix relative move commands following a path close. | Paul Mecklenburg | 2014-10-10 | 1 | -0/+7 |
| | | | | | | | | | Both 'M' and 'm' are moves and therefore start a new (sub)path. In either case the location should be cached so that a later 'close path' (z or Z) knows the location it is returning to. The location is not written to 'p', since it is assumed that the client code remembers. If the next move is relative (lowercase), then it's important that last_x, last_y were correctly updated while processing Z/z. | ||||
* | Add test case image for broken behaviour of relative move. | Michael Drake | 2014-10-10 | 1 | -0/+8 |
| | |||||
* | Update component version for releaserelease/0.1.2 | Vincent Sanders | 2014-08-26 | 1 | -1/+1 |
| | |||||
* | Hopefully silence warnings about inlines and non inlines calling one | Daniel Silverstone | 2014-04-26 | 1 | -0/+9 |
| | | | | another. | ||||
* | Update component version for releaserelease/0.1.1 | Vincent Sanders | 2014-04-18 | 1 | -1/+1 |
| | |||||
* | Add support for multilib | John-Mark Bell | 2014-01-13 | 2 | -3/+3 |
| | |||||
* | Fix to use list_size accessor. | Michael Drake | 2013-08-23 | 1 | -1/+1 |
| | |||||
* | Minor tidyup. | Michael Drake | 2013-08-23 | 1 | -10/+7 |
| | |||||
* | Move gradient logging to svgtiny_gradient.c, and suppress when not debugging ↵ | Michael Drake | 2013-08-23 | 2 | -2/+5 |
| | | | | gradients. | ||||
* | Fix leak of gradient dom strings. | Michael Drake | 2013-08-23 | 1 | -35/+189 |
| | |||||
* | Suppress most gradient debug. | Michael Drake | 2013-08-22 | 1 | -0/+18 |
| | |||||
* | update component version for releaserelease/0.1.0 | Vincent Sanders | 2013-04-19 | 1 | -1/+1 |
| | |||||
* | add a .gitattributes so .gitignore is not exported | Vincent Sanders | 2013-04-18 | 1 | -0/+2 |
| | |||||
* | Explicitly check if r0 or r1 are NaN, as if they are, on x86 the function ↵ | Chris Young | 2013-01-05 | 1 | -1/+7 |
| | | | | evaluates as 0 (which is already handled), but on PPC the function evaluates to a negative value, causing the following for loop to become infinite. | ||||
* | Handle empty text nodes correctly. | John-Mark Bell | 2012-12-31 | 1 | -3/+7 |
| | |||||
* | Drop const, as this can't work with libdom. | John-Mark Bell | 2012-12-30 | 1 | -6/+6 |
| | |||||
* | correct target name | Chris Young | 2012-11-27 | 1 | -1/+1 |
| | |||||
* | Replace dom_string_length with dom_string_byte_length -- faster and more correct | Daniel Silverstone | 2012-11-03 | 2 | -23/+12 |
| | |||||
* | Void myself unpleasantly in order to satisfy RISC OS toolchain | Daniel Silverstone | 2012-11-03 | 2 | -3/+5 |
| | |||||
* | Clean up properly | Daniel Silverstone | 2012-11-03 | 1 | -1/+9 |
| | |||||
* | Fix up pkgconfig | Daniel Silverstone | 2012-11-03 | 1 | -1/+1 |
| | |||||
* | Merge branch 'dsilvers/tolibdom' | Daniel Silverstone | 2012-11-03 | 10 | -341/+1483 |
|\ | |||||
| * | Convert the last bits for libdomdsilvers/tolibdom | Daniel Silverstone | 2012-11-03 | 2 | -6/+7 |
| | |