mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 18:07:59 +00:00
92db92af5a
sk_new() on invocation; these functions become responsible for (eventually)
freeing it. The caller must not do anything with 'addr' after it's been passed
in. (Ick.)
Why:
A SOCKS5 crash appears to have been caused by overzealous freeing of
a SockAddr (ssh.c:1.257 [r2492]), which for proxied connections is
squirreled away long-term (and this can't easily be avoided).
It would have been nice to make a copy of the SockAddr, in case the caller has
a use for it, but one of the implementations (uxnet.c) hides a "struct
addrinfo" in there, and we have no defined way to duplicate those. (None of the
current callers _do_ have a further use for the SockAddr.)
As far as I can tell, everything _except_ proxying only needs addr for the
duration of the call, so sk_addr_free()s immediately. If I'm mistaken, it
should at least be easier to find the offending free()...
[originally from svn r3383]
[r2492 ==
|
||
---|---|---|
.. | ||
.cvsignore | ||
mac_res.r | ||
mac.c | ||
mac.h | ||
macabout.c | ||
macctrls.c | ||
macdlg.c | ||
macevlog.c | ||
macmisc.c | ||
macnet.c | ||
macnoise.c | ||
macpgen.c | ||
macpgen.r | ||
macpgkey.c | ||
macpgrid.h | ||
macresid.h | ||
macstore.c | ||
macstuff.h | ||
macterm.c | ||
macucs.c | ||
mkputty.mpw | ||
mtcpnet.c | ||
otnet.c | ||
README.mac | ||
stricmp.c | ||
version.r | ||
vsnprint.c |
$Id: README.mac,v 1.28 2003/02/23 00:13:17 ben Exp $ Information about PuTTY for the Mac OS -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Compiling it: See ../README for generic information. To compile PuTTY for Mac OS you will need: MPW <ftp://ftp.apple.com/developer/Tool_Chest/Core_Mac_OS_Tools/MPW_etc./ MPW-GM_Images/MPW-GM.img.bin> Install this in the usual way. Universal Headers <ftp://ftp.apple.com/developer/Development_Kits/ UniversalHeaders3.4.2.img.bin> Install using the script in "Documentation:MPW Users - ReadMe". Text Encoding Converter SDK <ftp://ftp.apple.com/developer/Development_Kits/TEC_1.5.sit.hqx> Copy contents of "68K Static Libraries" to "Interfaces&Libraries:Libraries:Libraries". Copy contents of "Stub Libraries" to "Interfaces&Libraries:Libraries:SharedLibraries". CarbonStdCLib.o <ftp://ftp.apple.com/developer/Tool_Chest/Core_Mac_OS_Tools/ MPW_Website_Downloads/CarbonStdCLib.o-3.8d3.hqx> Copy contents of "CIncludes" to "Interfaces&Libraries:Interfaces:CIncludes". Copy contents of "PPCLibraries" to "Interfaces&Libraries:Libraries:PPCLibraries". The "mkputty.mpw" script does all the work, and currently producess a Classic 68K build of PuTTY called "PuTTY.68k", a non-Carbon PowerPC build called "PuTTY.ppc", and similar builds of PuTTYtel called "PuTTYtel.68k" and "PuTTYtel.ppc". The CFM-68K build is currently disabled because it overflows the global data space and I can't work out how to stop this happening. The Carbon build doesn't work yet. Runtime requirements: The Classic 68K build of PuTTY should work on any Macintosh running System 7.0 or later. It runs in the Classic environment in Mac OS X. The CFM-68K build of PuTTY should work on any Macintosh with a 68020, 68030 or 68040 processor and with either the CFM-68K Runtime Enabler or Mac OS 7.6.1 or later installed. The PowerPC build of PuTTY should work on any Power Macintosh. It runs in the Classic environment in Mac OS X. The Carbon build of PuTTY (when it works) should work on any Power Macintosh with CarbonLib (and Mac OS 8.1 or later), Mac OS 9 or Mac OS X installed. Known bugs: * Display is far too slow. * Real bold doesn't compensate for changing character widths without Color QuickDraw. [MAYBE FIXED] * When the last terminal window closes, the Edit menu doesn't get disabled immediately, which it should. * When using the "VT100" font, text copied to the clipboard doesn't get newlines in it, because that font has a graphic character at position 0x0d. Even if we did insert 0x0d manually, TextEdit insists on displaying the graphic version, so I think we need a font switch at this point. This can be seen as a special case of the need to switch fonts to get odd characters. * Pasting large blocks of text doesn't work. Unimplemented features (should be done before release): * TCP urgent data. * Listening sockets. * Changing font size in reponse to resize requests. * Full screen mode. * Session configuration. * Host key database. * Entropy collection. * Private key files. * Pageant and PuTTYgen. * Do something with Open Application Apple Events. * Warn-on-close. * Close-on-exit. * Warn-on-quit. * Flashing things. * Non-block cursors. Wishlist (after release): * SFTP client (GUI?) * Carbon compatibility (requires Open Transport and Navigation Services). * 'styl' paste, for script codes. * Handle 'gurl' Apple Events. Local Variables: mode: text End: