summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* tknzr: support only max long rgb valuesIgnacio Casal Quinteiro2017-04-161-0/+10
| | | | | This fixes a possible out of bound when reading rgbs which are longer than the support MAXLONG
* tknzr: remove unneeded assignIgnacio Casal Quinteiro2017-04-161-1/+0
|
* input: check end of input before reading a byteIgnacio Casal Quinteiro2017-04-161-2/+9
| | | | | | When reading bytes we weren't check that the index wasn't out of bound and this could produce an invalid read which could deal to a security bug.
* Typo fix s/unknow/unknown/Mattia Rizzolo2017-03-262-4/+4
| | | | | | Signed-off-by: Mattia Rizzolo <mattia@debian.org> https://bugzilla.gnome.org/show_bug.cgi?id=776798
* Typo fix s/Instanciation/instantiation/Mattia Rizzolo2017-03-262-7/+7
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=776798
* Typo fix s/occured/occurred/Mattia Rizzolo2017-03-265-7/+7
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=776798
* Visual Studio builds: Move projects to win32/Chun-wei Fan2017-02-231-3/+3
| | | | | | This enables us to go one less layer down the tree to reach the projects and allows the autotools modules Makefile-newvs.am and Makefile.msvcproj be in sync with the latest ones in GLib master.
* Fix regression in cr_tknzr_consume_chars()Florian Müllner2015-12-171-1/+1
| | | | | | | | | Commit bc9b2c339e introduced an intermediate variable to account for the difference in signedness between cr_tknzr_consume_chars() and cr_input_consume_chars(), but missed that the variable in question is an in-out variable that requires proper initialization. https://bugzilla.gnome.org/show_bug.cgi?id=759565
* Fix comparison warningMarek Chalupa2015-12-151-2/+2
| | | | | | Logical ! was only applied to the left side of the comparison https://bugzilla.gnome.org/show_bug.cgi?id=758394
* Fix unused status variable in set_prop_position_from_value()Руслан Ижбулатов2015-11-011-1/+1
| | | | | | * Return status https://bugzilla.gnome.org/show_bug.cgi?id=710076
* Fix unused status variable in cr_utils_utf8_to_ucs1()Руслан Ижбулатов2015-11-011-3/+1
| | | | | | | * Don't set status to CR_OK, it's initialized to that value * Return status https://bugzilla.gnome.org/show_bug.cgi?id=710076
* Fix unused status variable in cr_utils_ucs1_to_utf8()Руслан Ижбулатов2015-11-011-8/+2
| | | | | | | | * Return status instead (initialized to CR_OK) instead of an explicit CR_OK * Remove redundant check for *a_in_len < 1 (equivalent to *a_in_len == 0) and remove now-unused end label https://bugzilla.gnome.org/show_bug.cgi?id=710076
* Fix cr_tknzr_consume_chars() to set *a_nb_char before returningРуслан Ижбулатов2015-11-011-2/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710076
* Fix cr_input_consume_white_spaces to behave as documentedРуслан Ижбулатов2015-11-011-0/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710076
* Fix improper use of g_ascii_strup()Руслан Ижбулатов2015-11-011-2/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710076
* Derive pointer to have appropriate typeРуслан Ижбулатов2015-11-011-2/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710076
* Fix typosMarkus Engel2015-10-312-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=726993
* Fix typo in logical conditionBoris Egorov2015-10-311-1/+1
| | | | | | | | | | | TYPE_SELECTOR equals to 2, so condition (cur_sel->type_mask | TYPE_SELECTOR) will always be true. We should increase c only if we encounter a selector. Issue detected by Cppcheck and MSVS (see https://bugzilla.gnome.org/show_bug.cgi?id=507484) Signed-off-by: Boris Egorov <egorov@linux.com>
* Some style fixes in Makefile.amIgnacio Casal Quinteiro2015-10-311-83/+83
|
* Plug memory leaksMarkus Engel2015-10-302-3/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=726992
* Fix variables set but not usedIgnacio Casal Quinteiro2015-10-302-12/+4
|
* Build: Clean Up MSVC Project GenerationChun-wei Fan2015-07-271-28/+13
| | | | | | | | | | | | | | | Add and use a common autotools module, which can be used to generate the various Visual Studio 2008/2010 project files, which also have the following benefits: -Have the header installation porperty sheet also generated from the templates using 'make dist', to ensure the headers listings are kept up-to-date between releases. -Make src/Makefile.am cleaner -Support out-of-tree builds and 'make -jN dist' better Also improve the debugging experience for the stack by copying the .pdb files, which are already generated for all builds.
* cr-fonts: Fix a bad copy/paste errorJasper St. Pierre2014-08-131-1/+1
|
* cr-additional-sel: Fix some bad copy/paste errorsJasper St. Pierre2014-08-131-2/+2
|
* Canonicalize the spacing around if statements and g_return_* invocationsРуслан Ижбулатов2014-08-051-0/+17
|
* Fix the unused arguments warningsРуслан Ижбулатов2014-08-051-0/+9
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710076
* char/xmlChar castingРуслан Ижбулатов2014-08-056-32/+32
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710076
* gchar/guchar types and castingРуслан Ижбулатов2014-08-0516-98/+97
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710076
* Use the right values for checking CRPredefinedAbsoluteFontSizeРуслан Ижбулатов2014-08-051-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710076
* Use unsigned types where appropriateРуслан Ижбулатов2014-08-053-6/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710076
* Ensure PEEK_NEXT_CHAR does not clash with existing variablesРуслан Ижбулатов2014-08-051-3/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710076
* Remove shadowing from cr_tknzr_get_next_token()Руслан Ижбулатов2014-08-051-5/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710076
* Remove shadowing in cr_statement_media_rule_to_string()Руслан Ижбулатов2014-08-051-5/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710076
* cr-tknzr: Handle signed unitsJasper St. Pierre2012-10-161-2/+22
| | | | | | Parse something like '-20px' correctly. https://bugzilla.gnome.org/show_bug.cgi?id=686239
* build: Fix include directiveChristian Persch2012-10-161-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=686126
* Revert "cr-rgb: Fix mapping for 'green'"Adel Gadllah2012-10-071-1/+1
| | | | | | | | This reverts commit 0cbb0dfed7350ed48a12d56925cdd76255891aa5. This violates the CSS and SVG standards. https://bugzilla.gnome.org/show_bug.cgi?id=685679
* cr-om-parser: Stop memory leakJasper St. Pierre2012-06-241-11/+6
| | | | | | The parser refs the doc handler, so we need to unref it here. https://bugzilla.gnome.org/show_bug.cgi?id=678736
* cr-string: Prevent memory leakJasper St. Pierre2012-06-241-4/+4
| | | | | | | Instead of leaking the existing GString, truncate and append to it instead. https://bugzilla.gnome.org/show_bug.cgi?id=678736
* cr-rgb: Fix mapping for 'green'Adel Gadllah2012-03-181-1/+1
| | | | | | Green is supposed to be #00FF00 not #008000. https://bugzilla.gnome.org/show_bug.cgi?id=672332
* Bug 666248: Visual C++ compilation supportChun-wei Fan2012-01-092-0/+572
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables libcroco to be compiled with Visual C++ 2008/2010, along with its test programs. A libcroco.symbols is included to export the symbols from the DLL that is built in the process, and the projects for the main libcroco DLL is done in a way where their source file listings are filled in during "make dist" as they could be changed from time to time so to simplify maintenanace work. Versioning stuff are also done via autotools as far as possible also. The .sln files have no simple way to include the LGPL 2.1+ terms without causing trouble, so the text for them is included as follows, for references. ------ This file is part of The Croco Library This program is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author: Fan, Chun-wei See COPYRIGHTS file for copyright information. ------
* Revert "Bug 666248: Visual C++ compilation support"Chun-wei Fan2011-12-202-572/+0
| | | | This reverts commit 642ac3f675176ee6c2e124eac86dd85b1b1816e0.
* Bug 666248: Visual C++ compilation supportChun-wei Fan2011-12-202-0/+572
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables libcroco to be compiled with Visual C++ 2008/2010, along with its test programs. A libcroco.symbols is included to export the symbols from the DLL that is built in the process, and the projects for the main libcroco DLL is done in a way where their source file listings are filled in during "make dist" as they could be changed from time to time so to simplify maintenanace work. Versioning stuff are also done via autotools as far as possible also. The .sln files have no simple way to include the LGPL 2.1+ terms without causing trouble, so the text for them is included as follows, for references. ------ This file is part of The Croco Library This program is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author: Fan, Chun-wei See COPYRIGHTS file for copyright information. ------
* Modernise and simplify configureChristian Persch2011-12-113-12/+5
|
* Use -Bsymbolic-functions when availableChristian Persch2011-12-111-15/+31
|
* Use case-insensitive string comparision of colour namesChristian Persch2011-12-111-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=459403
* Use bsearch to find the colour by nameChristian Persch2011-12-111-11/+21
|
* Fully initialise this static dataChristian Persch2011-12-111-148/+148
| | | | | | Cherry-picked from commit ac3e66fa2bb416507b5b5cf114c1edaa3455f105 . Also sort the array alphabetically.
* Fixed format string issues by giving static literals, fixes bug 640897Tobias Mueller2011-12-061-5/+5
|
* Make colour table constFelix Riemann2011-12-061-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=546765
* Revert "Sending recent tested changes from inkscape developers to libcroco ↵Abhishek Sharma2011-11-0649-1750/+2656
| | | | | | upstream" This reverts commit ac3e66fa2bb416507b5b5cf114c1edaa3455f105.