Michael Catanzaro
db335d052e
gsocks4aproxy: Fix a single byte buffer overflow in connect messages
...
`SOCKS4_CONN_MSG_LEN` failed to account for the length of the final nul
byte in the connect message, which is an addition in SOCKSv4a vs
SOCKSv4.
This means that the buffer for building and transmitting the connect
message could be overflowed if the username and hostname are both
`SOCKS4_MAX_LEN` (255) bytes long.
Proxy configurations are normally statically configured, so the username
is very unlikely to be near its maximum length, and hence this overflow
is unlikely to be triggered in practice.
(Commit message by Philip Withnall, diagnosis and fix by Michael
Catanzaro.)
Fixes : #3461
2025-07-10 17:20:46 -05:00
Sébastien Wilmet
3bf4a720c3
gio/: LGPLv2+ -> LGPLv2.1+
...
Sub-directories inside gio/ already processed in a previous commit:
- fam/
- gdbus-2.0/ (which contains only codegen/)
- gvdb/
- inotify/
- tests/
- win32/
- xdgmime/
Other sub-directories inside gio/:
- completion/: no license headers
- kqueue/: not LGPL, BSD-style license
https://bugzilla.gnome.org/show_bug.cgi?id=776504
2017-05-29 19:53:34 +02:00
Piotr Drąg
10c490cdfe
Use Unicode in translatable strings
...
See https://developer.gnome.org/hig/stable/typography.html
https://bugzilla.gnome.org/show_bug.cgi?id=772221
2016-10-12 21:30:42 +02:00
Philip Withnall
3613b7a366
gio: Add source tags to various GTasks constructed in GLib
...
This makes them easier to identify when debugging and profiling.
This patch was somewhat less than interesting to write.
https://bugzilla.gnome.org/show_bug.cgi?id=767765
2016-06-29 15:16:52 +01:00
Daniel Mustieles
078dbda148
Updated FSF's address
2014-01-31 14:31:55 +01:00
Dan Winship
d21309464c
gio: port networking classes from GSimpleAsyncResult to GTask
...
https://bugzilla.gnome.org/show_bug.cgi?id=661767
2012-10-10 10:29:37 -04:00
Dan Winship
eb45a590fa
gsocks5proxy, gsocks4aproxy: simplify some error messages
...
There's no need to include the exact max length in the error messages,
and it makes it look like the strings need to use ngettext() if you do.
https://bugzilla.gnome.org/show_bug.cgi?id=658206
2011-09-18 10:49:58 -04:00
Christian Persch
9e0c07870a
Use g_simple_async_result_{new_,}take_error
...
Bug #633685 .
2010-11-03 14:25:35 +01:00
Nicolas Dufresne
ced1d0e2e7
Implemented SOCKSv4 and SOCKSv4a
2010-08-19 16:32:38 -04:00