summary refs log tree commit diff stats
path: root/src/common/util.c
AgeCommit message (Collapse)Author
2017-09-21Fix rfc_ncasecmp handling of n reaching 0Joseph Bisch
If n becomes 0 at the same time that the end of either s1 or s2 are reached, the next iteration of the while loop wouldn't happen, so we wouldn't correctly return 0.
2017-09-19Fix rfc_{n,}casecmp functions (#2058)Joseph Bisch
rfc_casecmp was broken because reaching terminator for str1 was used as a terminal condition and str2 may be shorter than str1, resulting in an oob read condition for str2. rfc_ncasecmp was broken because it checked if n characters were checked or if BOTH pointers reached their terminator, however the strings may be different lengths and also less than n characters in length, meaning that they don't both reach their terminators at the same time, resulting in an oob read condition.
2017-08-31Improve detection of system tray supportPatrick Griffis
Closes #2045
2017-06-13build: Replace Autotools with MesonPatrick Griffis
Quick rundown of benefits: - Much faster: - Autotools (with autogen): 22 seconds - Meson: 7 seconds - Meson (with ccache): 2 seconds - Simpler: - ~1000 lines smaller - Single simple language - Potentially better Windows (Visual Studio) support What is not done: - Complete Windows support - OSX support (easy) Closes #2013 Closes #1937 Closes #1803
2016-05-28Couple of minor const correctness fixesErik de Castro Lopo
2016-04-13Fix challengeauth lower casing usernamePatrick Griffis
2016-01-29Remove DH-AES/DH-BLOWFISH mechanisms and misc cleanupPatrick Griffis
- AES and Blowfish mechanisms are deemed insecure and servers have removed support for them - Remove attempts to retry since we only support one mech - Handle SASL 3.2's new syntax for supported mechs
2015-10-12common: Moved some functions over from plugins/sysinfo that are useful for ↵Arnavion
the rest of HC. OS name, CPU, GPU, HDD info and build arch are now all available within core HC. OS name and build arch are used in the About dialog.
2015-10-05win32: Don't rely on CWD for portable-mode checkPatrick Griffis
Also cache the result... Fixes #1500
2015-03-19Fix warningsTingPing
2015-02-04Partial fix for Windows 10 detectionBerke Viktor
2014-12-28Remove option to use socks5 libraryTingPing
This was always disabled by default and is not required for the current socks support. I am not even sure this library is packaged by any distro?
2014-12-28Fix building as c89TingPing
2014-12-28Use glib for all allocationsTingPing
- Removes need to check for malloc failure - Removes need for NULL checks on free - Adds checks for integer overflows - Removes some extra memset calls - Removes chance of mixing libc and glib malloc/free
2014-12-17More consistently include config.hTingPing
2014-12-15Remove unused headerTingPing
2014-12-15Add patch from cygwinTingPing
2014-12-08Removed some unnecessary casts.Arnavion
2014-12-08Removed some commented-out code.Arnavion
2014-12-08Removed some unnecessary null-checks for calls to g_free and g_strfreevArnavion
2014-11-22Fix possible crash in SASL Blowfish mechTingPing
2014-11-02Warning cleanupCampbell Barton
- ignoring const - declarations after statements - some C files didnt include own headers (risking them getting out of sync) Closes #1064
2014-07-28Fix warningTingPing
2014-07-28Fixed expand_homedir to handle paths like "~user" correctly.Arnavion
2014-07-05Disable tray support on ElementaryTingPing
They followed Ubuntu in breaking any gtk trays..
2014-06-21Remove broken debug codeTingPing
2014-06-04Use GDir instead of direntTingPing
2014-06-04Use glib to parse and launch commands for util_execTingPing
Fixes #958
2014-06-04win32: Use config.h instead of config-win32.hTingPing
2014-04-24Replace deprecated GetVersionEx calls with version helpersBerke Viktor
Only compiles with 8.1 SDK but runs everywhere Closes #957
2014-04-21Use utf-8 variant of strftime to format log file paths.Arnavion
strftime assumes the format string is in locale encoding, which mangles log file paths that are in utf-8. Fixes #767 Fixes #945
2014-02-12Fix some leaksTingPing
2014-02-12Remove unused functionTingPing
2014-02-04osx: Set Menlo as default fontTingPing
This moves the find_font function to the front ends since it depends on pango and cairo
2014-01-30Now make_ping_time() in common/util.c returns the time in milliseconds insteadDiogo Sousa
of microseconds. In fe_set_lag(serv, lag) the lag argument is now in milliseconds as well. Fixes #758.
2013-11-02Fix invalid timestamps crashing on WindowsTingPing
2013-09-25Only show users country if its not unknownTingPing
2013-09-07Disable challangeauth without opensslTingPing
2013-09-07Implement BLOWFISh, AES, and EXTERNAL SASL mechanismsTingPing
Closes #657
2013-05-20Sample code docs for challengeauth_response()Berke Viktor
2013-05-19CosmeticsBerke Viktor
2013-05-19Simplify SASL auth string generation codeBerke Viktor
2013-05-17Add support for QuakeNet /CHALLENGEAUTH, remove legacy /AUTHBerke Viktor
2013-05-14Fix warningsBerke Viktor
2013-05-04Replace g_strdup_printf with g_build_filename where possibleBerke Viktor
2013-04-02Only include top level includes from GTK+, GLib and GDK-PixBufBerke Viktor
2013-04-02Remove most of HexTray and one instanceBerke Viktor
You can still build HexTray manually if you want to try fixing it
2013-03-25Disable tray when using UnityTingPing
2013-01-09Oops, fixed error in util.cRichardHitt
2013-01-09Make source cleah with cppcheck, except for mpc and saslRichardHitt