Edward Tomasz Napierala
0c49a84ffb
Add back some ifdefs.
...
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-08-09 11:06:36 +01:00
Edward Tomasz Napierala
aeaa420ad3
Clean up includes a bit.
...
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-08-01 01:15:25 +01:00
Edward Tomasz Napierala
5551b4fe95
Update copyrights.
...
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-30 11:47:08 +01:00
Edward Tomasz Napierala
8bb392a3f4
Hook up capsicum.h and fe-capsicum.h to autotools.
...
This hopefully fixes Travis build.
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-30 01:27:33 +01:00
Edward Tomasz Napierala
8c04c2be14
Fix build without Capsicum.
...
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29 23:52:23 +01:00
Edward Tomasz Napierala
12e2c46d6a
Add wrappers to reduce #ifdefs.
...
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29 23:52:23 +01:00
Edward Tomasz Napierala
e777ae986d
Working autolog.
...
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29 23:52:23 +01:00
Edward Tomasz Napierala
d5d45c29b8
Add capability mode error/success messages.
...
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29 23:52:23 +01:00
Edward Tomasz Napierala
e08e2bd87a
Don't compute log_dir_create_mode in three different places.
...
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-28 03:56:02 +01:00
ailin-nemui
1656dc1e54
Merge pull request #653 from ailin-nemui/regexex
...
Enable UTF8 in GRegex
2017-07-03 09:53:09 +02:00
ailin-nemui
28d82c8f63
Merge pull request #709 from osm/master
...
Escape nicks during nick completion when expand_escapes is enabled
2017-06-23 18:00:04 +02:00
ailin-nemui
9d32636ebe
Merge pull request #703 from vague666/server_modify_port
...
Allow -port <num> or irc.host.tld <num> in /server add
2017-06-23 17:59:02 +02:00
ailin-nemui
bbf8b86074
remove const
2017-06-22 09:33:33 +02:00
Oscar Linderholm
12d671a056
Escape nicks during nick completion when expand_escapes is enabled
...
Fixes #693
2017-06-21 10:40:47 +02:00
ailin-nemui
02a5d1a00b
fix weird n-fold unescaping
2017-06-19 14:09:02 +02:00
ailin-nemui
4edfccfce7
get rid of new_text
2017-06-05 13:46:43 +02:00
Jari Matilainen
f28c64a3dc
Make backward compatible with ssl flags
2017-06-04 19:47:30 +02:00
Jari Matilainen
e84adeca15
change ternary operator to if/else statements, add default ssl port support
2017-06-04 17:41:38 +02:00
ailin-nemui
79bbca4644
Refactor regex and implement UTF8 mode for GRegex
...
- with non-unicode byte to Private Use Area A mapping
- move all ifdefs to iregex.h file only
2017-06-04 00:52:53 +02:00
dequis
632b0ce5e6
Add parse_uint function to improve integer overflow handling
...
Originally found by oss-fuzz (issue 525) in get_ansi_color using ubsan.
After a lot of analysis I'm 99% sure this isn't security relevant so
it's fine to handle this publicly.
The fix is mainly adding a function that does it right and use it
everywhere. This is harder than it seems because the strtol() family of
functions doesn't have the friendliest of interfaces.
Aside from get_ansi_color(), there were other pieces of code that used
the same (out*10+(*in-'0')) pattern, like the parse_size() and
parse_time_interval() functions, which are mostly used for settings.
Those are interesting cases, since they multiply the parsed number
(resulting in more overflows) and they write to a signed integer
parameter (which can accidentally make the uints negative without UB)
Thanks to Pascal Cuoq for enlightening me about the undefined behavior
of parse_size (and, in particular, the implementation-defined behavior
of one of the WIP versions of this commit, where something like signed
integer overflow happened, but it was legal). Also for writing
tis-interpreter, which is better than ubsan to verify these things.
2017-05-18 00:21:11 -03:00
Jari Matilainen
0c26aeb9fc
Make sure port is only set on /server modify if specified
2017-05-15 23:07:01 +02:00
ailin-nemui
81cf8d8813
Update fe-server.c
2017-05-14 09:43:38 +02:00
Jari Matilainen
4a6fbdbe78
Spaces to tabs
2017-05-14 03:01:01 +02:00
Jari Matilainen
783458e9ba
Added code comments
2017-05-11 14:08:45 +02:00
Jari Matilainen
25f9c71f69
Allow -port <num> or irc.host.tld <port num> in /server add and /server modify
2017-05-11 14:02:23 +02:00
Jari Matilainen
f060292a9c
Added braces
2017-05-11 11:17:14 +02:00
Jari Matilainen
dbde9f0fe3
Added support for -notls and -notls_verify
2017-05-11 10:57:24 +02:00
LemonBoy
c890ecafa0
Merge pull request #686 from josephbisch/remove-history-wrap
...
Don't allow command history to wrap around
2017-04-11 15:19:19 +02:00
Joseph Bisch
3297fafcd9
Add syntax info for completion
...
Allows syntax info to be picked up and displayed by help command.
Fixes #687
2017-04-07 12:56:46 -04:00
Joseph Bisch
405136440c
Remove over_counter
...
We are no longer using over_counter for any functional purpose, so
remove it.
2017-04-07 08:20:28 -04:00
Joseph Bisch
7c86575b02
Don't allow command history to wrap around
...
This changes the behavior of the command history to avoid wrapping back
to the bottom once the top of the history is reached.
2017-04-06 20:27:39 -04:00
Joseph Bisch
41776d71f7
Fix strange history behavior when history is empty
...
If text is being entered and then the user presses the up arrow
followed by the down arrow, the expected behavior is to return to the
text being entered. Prior to this commit that was not the case.
Fixes #462
2017-04-05 11:00:25 -04:00
ailin-nemui
e2e02160cd
Merge pull request #645 from LemonBoy/keyboard-misc
...
Timeout feature for keys
2017-03-11 23:11:43 +01:00
ailin-nemui
ddba68ad77
Merge pull request #659 from ailin-nemui/foreach_dontspam
...
make foreach send commands
2017-03-07 23:37:23 +01:00
ailin-nemui
62fd3ac180
Revert "Quote the filename when dcc requests are auto accepted."
2017-03-06 11:27:55 +01:00
ailin-nemui
29f27cfb39
Merge pull request #658 from LemonBoy/dcc-autoaccept
...
Quote the filename when dcc requests are auto accepted.
2017-03-04 21:43:21 +01:00
Nei
7ef22687f9
Merge branch 'd-minor' into 'master'
...
Prevent some potential null-pointer deferences.
See merge request !9
2017-03-04 20:35:17 +00:00
ailin-nemui
9aaa6449a0
make foreach send commands
2017-02-27 13:43:58 +01:00
LemonBoy
027acffb42
Handle file names with quotes.
...
Let's repurpose escape_string and make it more flexible by letting us
choose the characters to escape.
2017-02-22 11:49:09 +01:00
LemonBoy
9cae98e642
Execute what's left in the input queue when the timeout expires.
...
Similar to how vim behaves.
2017-02-18 15:57:55 +01:00
LemonBoy
98ead50b4e
Prevent some potential null-pointer deferences.
...
Spotted by our friend scan-build.
2017-02-14 14:46:14 +01:00
ailin-nemui
1ee25d2286
Merge pull request #590 from LemonBoy/hi-minor
...
Minor cleanup in the highlighting signal.
2017-01-31 14:18:48 +01:00
Joseph Bisch
c8dafe2a76
Add SUPPRESS_PRINTF_FALLBACK
...
There are some cases (such as fuzzing with fe-fuzz) where suppressing
printf output may be desirable.
2017-01-16 12:56:33 -05:00
ailin-nemui
17fc77565e
fix regression in completion
...
fixes #609
2017-01-09 13:19:37 +01:00
Nei
7a112e0217
Merge branch 'master' into 'security'
...
Sync to master
See merge request !6
2017-01-03 13:30:39 +01:00
ailin-nemui
01163710e7
Merge pull request #585 from ailin-nemui/win_seq
...
g_sequence backing for window list
2017-01-03 12:45:50 +01:00
Ailin Nemui
f5cbbebc2e
switch for gregex and regex.h
2017-01-03 12:29:11 +01:00
Nei
1b99299ed2
Merge branch 'percent_flag' into 'security'
...
fix %[
See merge request !5
2017-01-02 17:01:47 +00:00
LemonBoy
5dcf291f21
Use the RAW flag when building the regexps.
...
Also, plugged a memory leak when retrieving the match position.
2017-01-02 17:50:14 +01:00
LemonBoy
3fcd3cd2b9
Remove the regexp_compiled field.
...
It was made redundant by the introduction of the pointer to the GRegex
structure.
Silence the compiler warning in textbuffer.c about preg being
initialized by setting it to NULL.
2017-01-02 17:50:14 +01:00