0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-03 20:38:53 +01:00
Commit graph

3663 commits

Author SHA1 Message Date
Jason Volk
7ecb061e69 authd: Fix use after reference count decrement. 2016-08-12 14:11:54 -07:00
Aaron Jones
3fccd78d32
openssl: Avoid use-after-free when rehashing fails to load new files
Commit cf12678 introduced a fix for issue #186 by freeing the old SSL_CTX
structure before constructing a new one, which could disconnect existing
clients otherwise.

Unfortunately, the freeing is done first, which means that if setting up
a new structure fails for any reason, there will be no usable structures
left, but they are still referenced.

This fix moves the freeing to the end of the function, using intermediate
new variables in the meantime. This problem was discovered while testing
against OpenSSL 1.1.0 RC6.
2016-08-12 13:37:37 +00:00
William Pitcock
09d19cbbd3 capability: clean up CAP_REQUIRED and CAP_ORPHANED flags, use bool variables instead 2016-07-31 18:39:19 -05:00
William Pitcock
e7a768ca22 capability: fix capability stats dumping 2016-07-31 18:10:31 -05:00
William Pitcock
7128b66c97 rb: remove export-syms.txt for now 2016-07-31 18:06:26 -05:00
William Pitcock
d7eb77c61b rb: import formatter library 2016-07-31 17:55:43 -05:00
William Pitcock
561ca4dfc0 travis: clang 3.8 is fucked, disable for now 2016-07-31 14:29:46 -05:00
William Pitcock
113f57f865 travis: test clang++ 3.8 on a newer distribution to avoid broken libstdc++ headers 2016-07-31 14:22:35 -05:00
William Pitcock
8bb208aaa2 version: don't crash due to buffer underrun 2016-07-31 03:35:45 -05:00
William Pitcock
92415a5371 alias: cleanups 2016-07-31 03:24:12 -05:00
William Pitcock
d0a59d58a0 capability: major rewrite for C++ support.
- no rb_dictionary use anymore
- CapabilityIndex converted into a proper class
- proper RAII lifecycle management
2016-07-31 03:18:22 -05:00
William Pitcock
ddd9920f5b util: memory, not unique_ptr header :) 2016-07-31 02:14:37 -05:00
William Pitcock
6fb9a722a2 fix build on clang++ 3.8 2016-07-31 01:59:57 -05:00
William Pitcock
10ff2d192c alias: convert to RAII/std::string/etc, no more rb_dictionary use (ref #202) 2016-07-31 01:57:04 -05:00
William Pitcock
1c77b054a8 parse: move cmd_dict to a std::set 2016-07-31 01:36:14 -05:00
William Pitcock
4ed0aebcb6 cache: further cleanups 2016-07-31 01:21:10 -05:00
William Pitcock
840ffb0935 cache: do not cause an implicit copy of std::string elements 2016-07-31 01:19:15 -05:00
William Pitcock
c7135bdf9a cache: adopt proper RAII pattern 2016-07-31 01:03:05 -05:00
William Pitcock
1c813cee95 cache: rough conversion of help system to std::map (ref #202) 2016-07-30 22:13:29 -05:00
William Pitcock
d18e5dc54f util: add std::map helpers for using case-insensitive strings/irccmp strings 2016-07-30 21:54:48 -05:00
William Pitcock
34a33a07d0 configure: fix ENABLE_FHS_PATHS being enabled when it shouldn't 2016-07-30 21:25:34 -05:00
William Pitcock
e64c51e71c bandb: show the path of the database file when complaining about opening it 2016-07-30 21:14:52 -05:00
William Pitcock
12ef3b15d6 fs: use normal ETCDIR for now 2016-07-30 21:02:24 -05:00
William Pitcock
f9a4adc03b headers: make ircd namespace inline in more places 2016-07-30 20:52:41 -05:00
William Pitcock
d60c03c28f Revert "headers: don't use inline namespaces"
This reverts commit 51a75f00be.
2016-07-30 20:50:27 -05:00
William Pitcock
51a75f00be headers: don't use inline namespaces 2016-07-30 20:47:44 -05:00
William Pitcock
95b4dff0c6 configure: boost_linkage should be shared when using system boost 2016-07-30 20:42:39 -05:00
William Pitcock
f8e09c38dc configure: more cleanups 2016-07-30 20:05:09 -05:00
William Pitcock
e108151c20 configure: use AX_BOOST macros when not building built-in boost 2016-07-30 19:56:01 -05:00
William Pitcock
b3edc74a07 m4: add ax_boost_asio macros 2016-07-30 19:53:57 -05:00
William Pitcock
9951d5127f m4: add AX_BOOST_BASE and AX_BOOST_SYSTEM macros 2016-07-30 19:48:53 -05:00
William Pitcock
8aa152eea7 Merge pull request #204 from jevolk/README
Update README. charybdis-5-dev.
2016-07-27 02:34:49 -05:00
Jason Volk
e65fcb09a7 Update README. charybdis-5-dev.
[ci skip]
2016-07-25 19:54:48 -07:00
Jason Volk
625fb277ca Add root exception + basic utilities. 2016-07-25 19:43:26 -07:00
Jason Volk
73297c988b Preliminary defaults/paths namespacing.
The namespace is inline to mimic the C namespace for now.
2016-07-25 16:49:00 -07:00
Jason Volk
726e5a24a4 bandb: Suppress all warnings from sqlite3.c compilation. 2016-07-25 13:01:48 -07:00
Jason Volk
a5bed9b058 bandb: Convert rsdb_sqlite3 + suggested printf attribute. 2016-07-25 12:29:47 -07:00
Jason Volk
b68010df31 Merge pull request #203 from jevolk/master
Bison C++ linkage + build improvements
2016-07-25 10:56:37 -07:00
Jason Volk
4796bec441 Activate PCH for position independent code.
Cuts compilation time by 30%+
2016-07-25 00:54:38 -07:00
Jason Volk
1eb7d4f319 configure.ac: Use stddef.h as dead header.
/dev/null cannot be used on windows, and /dev/null appears as modified
dependency when checking the PCH.
2016-07-25 00:54:38 -07:00
Jason Volk
d1edbc0e58 Complete the C++ linkage with flex/bison. 2016-07-25 00:54:38 -07:00
Jason Volk
530faa46a4 Add --with-included-boost=shared because it is not going to be installed. 2016-07-25 00:54:38 -07:00
Jason Volk
649561f79f configure.ac: adjust version to meet integral targets. 2016-07-25 00:54:38 -07:00
Jason Volk
e06f50a5de travis: Make a record of installed build util version numbers. 2016-07-25 00:54:20 -07:00
Jason Volk
9951e63d56 Recognize subdirectories as make targets. 2016-07-24 21:15:54 -07:00
Jason Volk
78ad65f386 ircd/rb: Move some remaining macros to rb. 2016-07-24 21:15:47 -07:00
Jason Volk
02119375b1 Add --disable-pch configuration option. 2016-07-23 19:40:18 -07:00
Jason Volk
31f4d0d699 Fix rb.h.gch compilation flags. 2016-07-23 19:40:18 -07:00
Jason Volk
983f0bc154 Fix configure.ac macro expression. 2016-07-23 19:40:18 -07:00
William Pitcock
8fed90ba8a Merge pull request #198 from jevolk/cpp
Full C++14 integration.
2016-07-22 23:46:44 -05:00