summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2019-08-17cid#1452381 avoid use of invalid iteratorlibabw-0.1.3David Tardon1-2/+5
Change-Id: I91e3f2e5a191b4b476b8b0626b4ab7401dd5ab92
2019-08-12do not parse entitiesDavid Tardon1-1/+1
Change-Id: I367e3e45cb38b8e863da753900ce5f79a840e171
2019-08-07WaE: implicitly declared ABWData::operator= is deprecatedDavid Tardon1-0/+1
Change-Id: If2167cb3914c3f5a8ee865bfbb241eed9e95bce4
2018-02-02iwyu: reduce includesDavid Tardon3-3/+0
Change-Id: Icb9643c23f2c628a81d6570ca304473cd04137f7
2018-01-22ofz#4681 propagate read error upDavid Tardon2-18/+28
Change-Id: I8e271410d717bc1d53323d624a3a46cf3812fca9
2018-01-18move dict from oss-fuzzDavid Tardon1-0/+195
Change-Id: I95ad30e3b82d4ea4dbce5632e20b5b85bac7630d
2017-12-31tdf#74462 use min width/height for inline imagesDavid Tardon1-0/+4
Change-Id: I0a3f14ff4ab7d01eaa76bbfc2fe2d890ff336272
2017-11-27ofz#4420 avoid signed integer overflowDavid Tardon1-1/+5
Change-Id: Id8c52d600350a4469e506395d75619d111160db0
2017-11-20ofz#2370 avoid signed integer overflowDavid Tardon1-1/+7
Change-Id: I77bbaf6ad9be5f80c530dd000c110b51c2527b28
2017-11-04Use auto when declaring iterators and when initializing with a castMiklos Vajna5-10/+10
Change-Id: I9c72f04ed4d3e1bbe75918f851f9a6d300ed875f
2017-09-28avoid output from fuzzerDavid Tardon1-2/+2
Change-Id: I4b755953b17d6e9f9d12431d828432ab94c2ca2c
2017-09-04ABWContentCollector: map dc.creator to meta:initial-creatorMiklos Vajna1-2/+2
librevenge's dc:creator stands for "last modified by" at multiple places (LibreOffice, libvisio), meta:initial-creator is the author key. Change-Id: If2641d973b1f436557e1fef355ae05863e25a3a5
2017-08-25metadata: emit generatorMiklos Vajna1-0/+11
Change-Id: Ide402008395e827e8d00b3181e6f27f3799e6166
2017-08-15Convert explicit for loops to range-based ones where possibleMiklos Vajna3-16/+14
Makes the code a few lines shorter. Change-Id: I39eb3b0c26dac6daf50750ba72823b2dbfd38c2d
2017-08-11Convert 0 to nullptr where it's used as a pointer valueMiklos Vajna12-17/+17
To make the code easier to read, because this means the remaining zeros all mean numbers. Change-Id: I4c904506b56946d9f14ac64381995d2bdbdf1e50
2017-08-11metadata: fix handling of titleMiklos Vajna1-6/+2
No need to create a custom doc property, there is a stock one. Change-Id: Ibe539923d3349eb09bac56e1c6099af6c6ab9320
2017-08-09Mark overriding member functions as 'override'Miklos Vajna5-176/+176
This does not affect the generated code (API or ABI), but: 1) Makes sure that in case the signature of one of these functions would change by accident, the build breaks as the function no longer overrides a base function. 2) Makes the code readable by explicitly marking all overriding functions as 'override', where previously the reader had to read the interface of the base class(es) as well to find out if the function is virtual or not. 3) Since 'override' implies 'virtual', remove the 'virtual' keyword where 'override' is present. Change-Id: I8b3f2de677ce126e1a6a0844e8081eeef15d7909
2017-07-31ABWParser: fix thinkoMiklos Vajna1-1/+1
processXmlDocument() had a while() loop till ret is not 1, but then only returns true if ret is 1, sounds like it always returns false. The intention was probably that ret is not -1, so check for 0 instead. Change-Id: Ied2e378e7d63c190094ea4b3d4bf5ee7123e80e4
2017-07-31ABWParser: printf -> ABW_DEBUG_MSGMiklos Vajna1-1/+1
Which goes to the stderr, so `./abw2odt in.abw > out.fodt` produces a valid flat ODF in out.fodt. Change-Id: I3d7256935c0c7eb3336b7d068b9f4a64da404c5d
2017-06-13fix -Werror=implicit-fallthroughFridrich Štrba1-5/+5
Change-Id: If8e81cfa6d0764d7eb6346bda11c89a118659e32
2017-05-17ofz#1254 the # of columns cannot be negativeDavid Tardon1-2/+2
This could cause a big allocation and extremely slow appending of millions of RVNGPropertyLists to a RVNGPropertyListVector in ABWContentCollector::_openTable, because the # of columns is cast to unsigned. Change-Id: I0d62659d15c95a2f0828eb9347f6efe1f377ef25
2017-05-17improve check for stuck XML parserDavid Tardon3-20/+47
This fixes regression in parsing some broken documents caused by commit 442b4812cf058481e00c186ef738c990e1a50284 . Change-Id: Id4afc8b120c72cb77f27c71c3f1452e100f86faf
2017-05-16replace Spirit.Classic by QiDavid Tardon3-99/+51
Change-Id: I9314e123dbd8346fa7e484f9dede3a0379574bd6
2017-05-16drop unneeded includesDavid Tardon2-2/+3
Change-Id: I0a6d40ff003a71d8538e57a6468b09c58b2a9680
2017-05-16drop :: prefixDavid Tardon3-4/+4
Change-Id: I5e7411a87bf9e3443b675984d2f9027638d886d9
2017-04-23drop unused macro DELETEPDavid Tardon1-2/+0
Change-Id: I583b1517af38653950fc137c0cf84b02257738a1
2017-04-23replace dumb pointers by smart onesDavid Tardon5-38/+22
Change-Id: Ia5497a98c7de264edfb61a78123c288448e476dd
2017-04-23replace dumb pointers by smart onesDavid Tardon2-7/+5
Change-Id: Ie10877ba7a83741f57166c079e3b95fc4145ccbd
2017-04-20ofz#1198 initialize iteratorDavid Tardon1-1/+1
A singular iterator is not equal to any other iterator. Change-Id: I24ee1569ee87752c63aa75810e0d8fc4c0f5130f
2017-04-20avoid possible null ptr deref.David Tardon1-1/+2
Change-Id: I0854b339425296d7d5444ca54e497d3ee06ee9f8
2017-04-20move cleanup of xmlTextReaderPtr to a single placeDavid Tardon4-12/+9
Change-Id: Idf32d2f27b7c97276e57e05a60270778ed92f611
2017-04-20ofz#1025 stop parsing if XML error is encounteredDavid Tardon3-8/+42
xmlTextReader either does not continue processing the document if it encounters an error or it can get into an infinite loop in some cases. XML_PARSE_RECOVER does not help. So we just give up in case of error. Change-Id: Ib5287a4032b2f9600bd389dcfb2e2cc6babf6ac8
2017-04-20move this from a separate source to ABXMLHelperDavid Tardon6-77/+40
Change-Id: I6429111a974c51a35f778c02f11d653f5bc48fbb
2017-04-20ofz#1023 avoid stack overflow with too big list levelDavid Tardon1-0/+3
Change-Id: I3810cfc334f5c9053e7f2302fe3034d87d57bc70
2017-04-19include config.h for HAVE_FUNC_ATTRIBUTE_FORMATosnola1-0/+4
Change-Id: I6162b62d4661345c2bd16c04cf69cd1bacb31240
2017-04-19retrieve textbox framesosnola8-99/+289
Change-Id: I3b6f4b8186feedfb9932098305f99a40a72a5726
2017-04-19simplify the codeosnola3-61/+50
Change-Id: Id4b7c753ace8e1ca612128b3d936bc3b347a48e1
2017-04-19try to retrieve some image framesosnola6-0/+139
Change-Id: I2d4ea674485da9afb68447af6e07a7a8eae94411
2017-04-19ofz#1020 look for some invalid table structuresDavid Tardon2-5/+40
Change-Id: Ia81b62f648d17e1592189cae64ed1eaec7eb0a2f
2017-04-17replace home-grown function by boostDavid Tardon1-28/+1
Change-Id: Icaaa733ce09a386207d78498c27837dbaa406e78
2017-04-17try to retrieve some fieldsosnola8-0/+374
Change-Id: I986deea39bd8f8b865ffc7b7bcf3fd5d59336b7a
2017-04-17try to not ignore some significant spacesosnola2-5/+11
Change-Id: Ie866f9f8fba8db8c1b0f98e1d9f2229b08e4c53e
2017-04-17set page size to A4 if it is unknownosnola1-2/+3
Change-Id: I7bdfc6a2eeeaf37fd480c10bd4088fb2606162a3
2017-04-15add format attribute to debugPrintDavid Tardon1-1/+7
Change-Id: If89bced0a52e758941d444d41cd87e87641856b0
2017-04-15clone is not usedDavid Tardon1-88/+0
Change-Id: I45e85d68cef70b695855fb9c1f7702bdfed08068
2017-04-15change manual memory management to std::unique_ptrDavid Tardon2-217/+221
Change-Id: Iccd03973aa848522557ba2c5d936ef71d74b4a9c
2017-04-15boost::scoped_ptr -> std::unique_ptrDavid Tardon1-2/+2
Change-Id: Ief360518046a65499fa6ffb894014e56d782c00e
2017-04-15boost::shared_ptr -> std::shared_ptrDavid Tardon5-13/+12
Change-Id: I910492f8c884e350a5301d8c7ccd403f7217c176
2017-04-11replace repeated increment with a single assignmentDavid Tardon1-2/+2
Change-Id: I868b82ebe8c9f731b17e2adac163a952304824c2
2017-04-05ofz: check the stack for emptiness before accessing topDavid Tardon1-2/+4
Change-Id: Id5ea6837e9df2e823437f3e95031b5e22ce91979