Commit Graph
20 Commits
Author SHA1 Message Date
Noel Grandin 3c51ab7573 remove unused toktype::IDENT
Change-Id: I4222902d9ef93e92dfbcbd089d6aaf7d724fa0de
Reviewed-on: https://gerrit.libreoffice.org/63750
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-11-22 08:47:33 +01:00
Noel Grandin be354a2abd loplugin:constparams
Change-Id: Ia322ecf8f80b28c58ec33d17ca9607401a92534b
Reviewed-on: https://gerrit.libreoffice.org/45959
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-12-07 07:21:32 +01:00
Stephan Bergmann dac11d8d50 Make cpp cope with long source lines
under --with-lang=ALL it had started to crash during e.g.

> LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}".../instdir/program:.../instdir/program" .../workdir/LinkTarget/Executable/cpp -+ -P -DWITH_POSTGRESQL_SDBC -DWITH_FIREBIRD_SDBC -DWITHOUT_EXTENSION_MEDIAWIKI -DWITHOUT_SCRIPTING_BEANSHELL -DWITHOUT_SCRIPTING_JAVASCRIPT -DWITH_HELPPACK_INTEGRATION -DWITH_EXTENSION_INTEGRATION -DENABLE_EXTENSION_UPDATE -DX86_64 -DLINUX -D_PTHREADS -DUNIX -DUNX -DCOMID=gcc3 -D_gcc3 -DWITH_LPSOLVER -I.../scp2/inc -I.../workdir -I.../config_host -I.../workdir/CustomTarget/scp2/macros -I.../workdir/ScpTemplateTarget/scp2/source/templates .../scp2/source/calc/file_calc.scp > .../workdir/ScpPreprocessTarget/scp2/source/calc/file_calc.pre

because of

> Syscall param read(buf) points to unaddressable byte(s)
>    at 0x4F31A80: __read_nocancel (syscall-template.S:84)
>    by 0x404F98: fillbuf (_lex.c:631)
>    by 0x404CCF: gettokens (_lex.c:479)
>    by 0x400F0A: process (_cpp.c:77)
>    by 0x400E80: main (_cpp.c:60)
>  Address 0x5278494 is 0 bytes after a block of size 32,772 alloc'd
>    at 0x4C2DB9D: malloc (vg_replace_malloc.c:299)
>    by 0x402034: domalloc (_cpp.c:321)
>    by 0x40554F: setsource (_lex.c:679)
>    by 0x403E38: doinclude (_include.c:130)
>    by 0x401F9D: control (_cpp.c:297)
>    by 0x401002: process (_cpp.c:101)
>    by 0x400E80: main (_cpp.c:60)

There appears to be no other check that fillbuf doesn't overflow the Source's
input buffer, other than gettokens checking that the buffer isn't more than
three quarters full ("if (ip >= s->inb + (3 * INS / 4)) ...").  That smells like
cpp assumes input lines to be shorter than some maximum number of characters
(like the C99 standard setting a minimum limit of "4095 characters in logical
source lines"), and

> #define README_TXT_ALL_LANG(key, name, ext) \
> 	key (af) = READMETXTFILENAME(name,_af,ext); \
> 	Name (am) = CONFIGLANGFILENAME(name,am,ext); \
> 	Name (ar) = CONFIGLANGFILENAME(name,ar,ext); \
[...]
> 	Name (zh-CN) = CONFIGLANGFILENAME(name,zh-CN,ext); \
> 	Name (zh-TW) = CONFIGLANGFILENAME(name,zh-TW,ext); \
> 	key (zu) = READMETXTFILENAME(name,_zu,ext)

in workdir/CustomTarget/scp2/macros/langmacros.inc (which appears to be the
culprit here) exceeding that limit under --with-lang=ALL.

So just bump the input buffer size.

Change-Id: I5d863050fb772dc7e691a604009ff8702dc718e3
2017-08-21 13:52:47 +02:00
Noel Grandin ec340697d6 loplugin:constparams in soltools and various
Change-Id: I5e8e4a9a31aa7c3ff54cc7ce137d08770ea297e1
Reviewed-on: https://gerrit.libreoffice.org/40279
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-07-21 17:11:15 +02:00
Noel Grandin e037381f85 loplugin:unusedfields in slideshow..svtools
Change-Id: I74d5a4b8cfc4b18267f99648a3112b163c91fd8c
Reviewed-on: https://gerrit.libreoffice.org/39474
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-07-03 16:03:34 +02:00
Noel Grandin d68a0fc050 loplugin:unusedmethods
Change-Id: Ie1603adf3908fd0668bcbe8f75c6bafa0d0bfd6c
Reviewed-on: https://gerrit.libreoffice.org/19072
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-02 06:20:35 +00:00
Andrea Gelmini 0b7d51df3b Fix typos
Change-Id: Ic6415423f46aaee7ba90239a617c318cf92ae222
Reviewed-on: https://gerrit.libreoffice.org/16711
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2015-07-04 10:21:01 +00:00
Stephan Bergmann 247bfbdb46 Move prototype to include
Change-Id: I90c093c704609429f9997f3ffed6a9a79c8956a6
2014-04-04 10:29:26 +02:00
Stephan Bergmann 376feb6a6f left shift of 1 by 31 places cannot be represented in type 'int'
Clang -fsanitize=undefined

Change-Id: I2b3f1bd28e098d5eb57892d2c7438c18c5c3b357
2013-08-22 07:13:58 +02:00
Michael Meeks e18655e475 re-base on ALv2 code. 2012-06-27 19:30:33 +01:00
Danny Roberts b7b0250d83 Removed some commented code. 2011-02-18 10:30:50 +01:00
Caolán McNamara 55e801c2af WaE: signed/unsigned 2011-02-03 11:35:01 +00:00
Tor Lillqvist 6ade6fe1e6 Silence compiler warnings 2011-02-03 00:44:31 +02:00
Caolán McNamara fa4882b94f add modelines to .h files as well 2010-10-28 15:47:03 +01:00
Caolán McNamara 857e5a528f linuxaxp01: #i110145# first cut 2010-03-15 16:02:56 +00:00
Vladimir Glazounov 8990690b58 CWS-TOOLING: integrate CWS mh132
2009-08-06 12:20:52 +0200 mh  r274712 : corrected error handling
2009-08-05 13:41:20 +0200 mh  r274661 : #i93040# NetBSD compile issue
2009-08-05 13:40:32 +0200 mh  r274660 : #i93040# NetBSD compile issue
2009-08-05 13:38:46 +0200 mh  r274659 : #i93040# NetBSD compile issue
2009-08-05 13:29:15 +0200 mh  r274658 : #i95193# increase includes limit
2009-08-05 13:22:07 +0200 mh  r274657 : #i96811# honor return values of read calls
2009-08-05 13:16:47 +0200 mh  r274654 : #i96802# honor return values of write calls
2009-08-05 13:07:06 +0200 mh  r274653 : #i99835# do DestroyData
2009-08-05 13:01:42 +0200 mh  r274651 : #i68557#: allow more dpi resolutions in scanner dialogue
2009-07-24 14:46:04 +0200 mh  r274307 : #i103770# missing fclose added
2009-08-26 14:24:27 +00:00
Jens-Heiner Rechtien 8288b1376f INTEGRATION: CWS warnings01 (1.3.102); FILE MERGED
2005/09/02 14:57:35 sb 1.3.102.1: #i53898# Made code warning-free.
2006-06-20 04:07:28 +00:00
Jens-Heiner Rechtien 9a129a649a MWS_SRX644: migrate branch mws_srx644 -> HEAD 2003-03-18 11:47:38 +00:00
Hans-Joachim Lankenau b8aaa1d5a5 #96287# make use of makedepend more flexible 2002-01-08 11:07:30 +00:00
Nils Fuhrmann 4f4b74153d Moved cpp from cpp to soltools 2001-04-19 07:20:23 +00:00