summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)Author
2014-04-02Handle missing SIZE_MAXTor Lillqvist
Change-Id: Id931f5339e19ce5ff635af93fe9f60f3abebe069
2014-04-02coverity#1194930 Avoid TOCTOU between access and mkdirStephan Bergmann
Change-Id: I6567313abdacd06b59f7004c970b954a4b42419e
2014-04-02sal/osl/unx/security.c -> .cxxStephan Bergmann
Change-Id: If8dbfa3e26a02ac3d5ee0077f730eeca4b59c4d7
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann
It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-04-01WaE: 'MAC_OS_X_VERSION_MAX_ALLOWED' is not defined, evaluates to 0Tor Lillqvist
(When compiling for iOS.) Change-Id: I9f9f5b122c1bfac4ff670a4302fb10b6b82685ac
2014-04-01sal: add aligned memory allocation with malloc for OS X < 10.6Douglas Mencken
Note that posix_memalign is not available everywhere (as are its replacements like memalign). For example, Darwin/OSX <10.6 has neither posix_memalign or memalign. Incorporating changes by Stephan Bergmann <sbergman@redhat.com>. Change-Id: I4a02b40c36d353c2b7a78d0bacb3b14e1f2d94da Reviewed-on: https://gerrit.libreoffice.org/8405 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2014-03-31Remove unused inline functionsStephan Bergmann
Change-Id: Ic31f99d6185000660750041065937845d4903bb3
2014-03-31coverity#983373 Dereference before null checkCaolán McNamara
Change-Id: Ie2a6b5e71f76ff2900ff078fcc098e66927458ef
2014-03-31Missing dependencyStephan Bergmann
Change-Id: I4e2444113871376c5ba134c523752e08812e70d9
2014-03-31Move invariant writes outside loopStephan Bergmann
Change-Id: Ia254fe382a00be13a631fcc1b23f940352d8d3ba
2014-03-30decorate tempfile name's to help identify leaks' authorNorbert Thiebaud
unottols TempFile class check in debug bod for and env variable LO_TESTNAME.. if present it use that as the root for the tempfile filename. cppunitteset framework is augmented so that it export such LO_TESNAME using the cppunit testName(), after replacement of non-alphnum characters by _ Change-Id: Iebb9545d3bd789083afbeaf4c64eab086b56049a
2014-03-29typo: inteface -> interfaceThomas Arnhold
2014-03-28coverity#705205 Missing break in switchCaolán McNamara
Change-Id: Iaee3b73ceed5df9928514e55d00ac6292b8b2249
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-25Remove the obsolete functionality originally underlying osl/diagnose.hStephan Bergmann
...before that got rebased onto sal/log.hxx. That functionality is considered an implementation detail, so it should be safe to remove it from the URE interface. As usual, aborting stubs are retained for SONAME stability. Change-Id: If948b9714c26a3871e38dea4d4d5b5466d6ee258
2014-03-25Adapt to sal/log.hxxStephan Bergmann
Change-Id: I9c59495977e111d94077470f07591c91fa3c1665
2014-03-24fdo#56284 : soffice fails to start unless ~/.config exists and is writableMichaël Lefèvre
Try to create $HOME/.config if not present. If present, check that it's a directory with RWX user permission Change-Id: Icef558b2185ad7a7b3518d097f7b62a0b3344083 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-03-23WaE: unused variablesTor Lillqvist
Change-Id: Ieac3cd6bf9ef883cbc3b295e25867a76ac68b88f
2014-03-23sal: add boost for rt_digest testsTomaž Vajngerl
Change-Id: Icced4134ecaa4ac2b3ae90253a4e91f1ea613669
2014-03-23sal: Add rtl_digest_SHA1 which shows wrong sha1 calculationTomaž Vajngerl
This test shows wrong sha1 calculation after 52 bytes of input data. For now this test is commented. Change-Id: Id6df40ecc4059d4a4f9e1646a2c1bb7242f4cf69
2014-03-23sal: Rewrite digest tests to be simpler, enable them in checkTomaž Vajngerl
Change-Id: I610e615be498237e5cd9dd963bca60c7f8f62aac
2014-03-19loplugin:passstringbyrefStephan Bergmann
Change-Id: I461db4b173dcdc812d3ccc5e3eef8a3dad93b0b0
2014-03-19coverity#984119 Uninitialized pointer fieldCaolán McNamara
Change-Id: I6bbb181b892f22d05be76fc75506d94543eb7ee7
2014-03-17sal,toolkit,unotools: prefer passing OUString by referenceNoel Grandin
Change-Id: Ie62a59fd9ff3d6f6a34240fd562fbc91a143bf3a
2014-03-11"overflow" is one wordTor Lillqvist
Change-Id: Ib36c2c5d55f86aff27081a0da554f6e8a81474ee
2014-03-10coverity#1079286 Uninitialized pointer fieldCaolán McNamara
Change-Id: Iaaab025a97d01b248f4478989d6cdfdc8664ba79
2014-03-07coverity#705404: Argument cannot be negativeNorbert Thiebaud
Change-Id: I235a5323ee0fd60aee03c691c0c7fdf6e6e4c08b
2014-03-07coverity#705824 Dereference before null checkCaolán McNamara
Change-Id: Iaf867d92adcc90d90a03dd8b7a353609934d9115
2014-03-07coverity#982463 Dereference after null checkCaolán McNamara
Change-Id: I46cbcb4091428557c8f9516e15c9be0eb4db27b2
2014-03-06Bin unused macxp_OSXConvertCFEncodingToIANACharSetName()Tor Lillqvist
Change-Id: I506940fd1b101d2c3f334e8d6608602c259b0a56
2014-03-06coverity#1190345 log failure to set CLOEXEC flagStephan Bergmann
Change-Id: Ia1678200393db0165711d4027f92a8be6b7f4ca5
2014-03-06coverity#1190347 check rename(3) return valueStephan Bergmann
Change-Id: Iebd3b0e1b52a01e14e01c6db1ca158ada91e8613
2014-03-05Bin unused global variableTor Lillqvist
Change-Id: I9bd4ea90638df91122b96f1fb86043c2d770417d
2014-03-05Use the AppleLanguages preference instead of AppleLocale on OS X and iOSTor Lillqvist
AppleLocale is for things like date formats, it seems, while the first entry in AppleLanguages contains the user's preferred UI language. I think that is closer to what we want here. Note that in AppleLanguages, the country (where present) is separated from the language with a hyphen, while in AppleLocale an underscore is used. Change-Id: I6d8a728d53ca6b46e8fcf0e333a6d0aa34abff1d
2014-03-04coverity#706154 is about call to strcpy, not osl_ProfileGenerateExtensionStephan Bergmann
...and the call to strcpy isn't even necessary. This includes a revert of 430237b3fa16bda228ff82b93228f28894568671 "coverity#706154: Dest buffer too small." Change-Id: I51186da6e7d80438b01d49e24a1fa47877078516
2014-03-04Fix CppunitTest_sal_osl_profileStephan Bergmann
Change-Id: Ie66636881a2e4c754bd95f9d1d72e0b4fc2828df
2014-03-04sal/osl/unx: profile.c -> profile.cxx (to facilitate further fixes)Stephan Bergmann
Change-Id: I3de66f499d20e7765b530890f746ccfe322252ac
2014-03-04Add mode linesTakeshi Abe
Change-Id: Iae71a0779839015b7c853f93703fe263f84a591a
2014-03-03coverity#706154: Dest buffer too smallNorbert Thiebaud
Change-Id: Ib80ed6bbacad9fdbe7a8fbafdd71bb11037e38cb
2014-03-03fdo#72468 Remove memory overflow on static memory.Arnaud Versini
Change-Id: Id294931921499bacb4590c82a5824d3b26d61171 Reviewed-on: https://gerrit.libreoffice.org/7087 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2014-03-01Adapt rtl_uriConvertRelToAbs to RFC 3986Stephan Bergmann
...which updates RFC 2396, removes the requirement that the base URI's path starts with a slash, and clarifies how to treat excess "." and ".." segments. This nicely allows handling of those odd vnd.sun.star.Package URLs as intended now, so that making <foo> absolute relative to base URL <vnd.sun.star.Package:Pictures/bar> yields <vnd.sun.star.Package:Pictures/foo> instead of provoking a MalformedUriException. Change-Id: Ice84303a57698a2c05d3a45541fe78b67450fa3c
2014-03-01Fix construction of non-ASCII test stringStephan Bergmann
Change-Id: I495ba4e2394bf0fd09b4d0f0111f9b8531674733
2014-03-01fdo#71043 - Use STACK lint tool to clean codeJosé Guilherme Vanz
The code is using a pointer without check if it is not null. Change-Id: Icb2dcf8d41a35514e18a5881f59399951b3e0493 Reviewed-on: https://gerrit.libreoffice.org/6529 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-03-01Remove visual noise from salAlexander Wilms
Change-Id: Idf07c7d31c0a523f929aded9ff3183a3f01b16b9 Reviewed-on: https://gerrit.libreoffice.org/8297 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-28Simplify string constructionStephan Bergmann
Change-Id: Ib46a64d8438dcaba37a234460d1a4113707e8c43
2014-02-28Missing @since tags, and adapt to semantics of posix_memalignStephan Bergmann
Change-Id: I677d973fbcf118111b5fc93b09143c66b0afb0d9
2014-02-28Android does not have posix_memalign()Tor Lillqvist
Change-Id: I4cd2f1e41b3bcab0d87a7b353d63c04b20aad492
2014-02-28Fix typo: s/Alined/AlignedTor Lillqvist
Change-Id: I248d002d2ed0e61f97a35ea0d329c64832252ad7
2014-02-27Ensure that numeric array storage is aligned to 256-byte boundary.Kohei Yoshida
OpenCL devices require this else we would get a performance hit. Change-Id: I6b1db6320fa84f933b6446022a0fd02ba267bf21
2014-02-24Use "deprecated" API for OS X alias resolving on X 10.5Douglas Mencken
Change-Id: I68a49b95c9b4f4d1d0472a298f8b29d83435c88e Reviewed-on: https://gerrit.libreoffice.org/8195 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>