1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00

10611 Commits

Author SHA1 Message Date
Martin Prikryl
3b3f024794 Issue 2477 – Recursive SCP directory download allows local path traversal when replacing of invalid characters in filenames is disabled
https://winscp.net/tracker/2477
(cherry picked from commit f998f3e79f)

Source commit: e3039dfefb13303c6fb00db56f71c9fbb6685ef9
2026-10-24 00:44:55 +02:00
Martin Prikryl
4c10ccd511 Issue 2476 – Memory leak in encrypted HTTP/S3/WebDAV connections
https://winscp.net/tracker/2476
(cherry picked from commit 4436072fa4)

Source commit: c4e5441cb5162b6ad175686ed29c717a2e005807
2026-10-24 00:44:07 +02:00
Martin Prikryl
24e7b4ec10 Avoid compiler warning
(cherry picked from commit 1ffd65ce61)

Source commit: 81bf4065200f5c278ce93480d990c0d213e16166
2026-10-17 00:36:09 +02:00
Martin Prikryl
53f8213112 Moving abnormal program termination handling to reduce interface
Source commit: 528cf0238d2af829fcc8481bd2452e1ba2ef7832
2026-10-16 11:08:10 +02:00
Build Server
ec328f18f1 Letter casing in filename
Source commit: bfe6ab0ffce08654cf659554c2924befa72f8383
2026-10-15 16:21:59 +02:00
Martin Prikryl
e19a9a3ec4 Bumping devel version to stable 6.7.1
Source commit: a33c96ee562c0459267a519b2561f28614432a4d
2026-10-14 14:01:10 +02:00
Martin Prikryl
00f664e86f Bumping devel version to stable 6.7
Source commit: 1cf02d11e9ebfe51b188723429e7a6c7768a2271
6.7
2026-10-14 10:27:10 +02:00
Eduardo Correia
8f67d22382 Give script rmdir's directory entries a full path
For rmdir, TScript::CreateFileList (fltDirectories) creates a bare
TRemoteFile with only its name and type: no directory list and no full
file name. TWebDAVFileSystem::DeleteFile takes the path from
File->FullFileName, and TRemoteFile::GetFullFileName then dereferences the
null Directory. With WinSCP 6.5.7 a script doing

  mkdir /work/gone
  rmdir /work/gone

over WebDAV fails with "Invalid access to memory" in
TRemoteFileList::GetFullDirectory (from TWebDAVFileSystem::FilePath,
TTerminal::DoDeleteFile, TScript::RmDirProc).

The entry now carries its absolute path, resolved as TTerminal::DoDeleteFile
resolves the same name. Protocols that use the file name (SFTP, SCP, FTP)
are unaffected; WebDAV now deletes the directory.
2026-10-13 14:08:14 +02:00
Eduardo Correia
d6dd4c7ec8 Free the Ed448 curve in ec_cleanup
ec_cleanup frees every curve ecc-ssh.c sets up except Ed448: ec_ed448 lacks
the WINSCP_CURVE_CLEANUP its siblings have and ec_cleanup does not call it,
so its points and bignums leak at shutdown once an Ed448 key was used.
2026-10-13 11:16:37 +02:00
Eduardo Correia
be053db0a6 Forget the freed system directory in win_misc_cleanup
win_misc_cleanup frees get_system_dir's cached buffer but leaves the pointer
and its size, so a get_system_dir call after the cleanup returns freed
memory instead of fetching the directory again.
2026-10-13 11:13:14 +02:00
Eduardo Correia
d89d03e5df Leave the PuTTY section when random_add_noise returns early
random_add_noise enters putty_section and then returns without leaving it
when the generator is not active. The section is recursive, so the thread
that returned keeps working, but any other thread entering it -- another
session's socket, RNG or bignum code -- then blocks for good.
2026-10-13 11:10:16 +02:00
Eduardo Correia
4e9af64b9c Pop aes-ni.c's clang attribute under the condition it was pushed
aes-ni.c pushes its target attribute under #ifdef __clang__ but pops it
under #ifdef _WIN64. For clang targeting Win64 the two coincide. Otherwise
they do not: clang targeting 32-bit Windows (clang-cl in a WINSCP_VS build)
reports the push as unterminated and fails, and MSVC targeting x64 meets a
pop of a clang pragma it does not know (warning C4068). The pop now has the
push's condition.
2026-10-13 11:03:41 +02:00
Eduardo Correia
1c4e584fe9 Swap GetParentProcessId's memset arguments back
memset takes the fill value before the size, so
memset(&ProcessEntry, sizeof(ProcessEntry), 0) zeroed nothing. It was
harmless, as Process32First fills the entry it reads, but the entry is now
cleared as intended.
2026-10-13 10:57:49 +02:00
Eduardo Correia
8a82e298f8 Close the handle FileGetSymLinkTargetSafe opens
FileGetSymLinkTargetSafe opens the link with CreateFile to read its reparse
point, but never closes the handle, so each call leaks one. DriveView calls
it for every symbolic link and junction it lists.
2026-10-13 10:52:56 +02:00
Martin Prikryl
b5f56bd2d4 Unused code
Inspired by PR #68

Source commit: 9c96e906501d8a22d305aa24ccf3162a287feb40
2026-10-13 10:47:52 +02:00
Martin Prikryl
69edabbe2d Issue 2469 – Failure when using options in button drop down menus on Overwrite confirmation box
https://winscp.net/tracker/2469

Source commit: 51281856e8bae26ce21ae495f726c91a72f5ff03
2026-10-13 00:38:14 +02:00
Martin Prikryl
78ef7c2cb7 Issue 2468 – Failure when keeping remote directory up to date
https://winscp.net/tracker/2468

Source commit: c75cda631f3837d27f311f66f2fb90d225e1bd1a
2026-10-13 00:36:43 +02:00
Martin Prikryl
05616dc742 Fixing stacktrace collection for abnormal program termination for 64-bit build
Source commit: d211d0525413d5b9a06ea25c788fa3d1377c68f3
2026-10-13 00:35:57 +02:00
Martin Prikryl
aaae9dcb51 Allowing to report abnormal program terminations + Handling all types of exceptions
Source commit: 469bb8038a53cf2510d92222e66351ba3c6c4a66
2026-10-10 00:36:12 +02:00
Martin Prikryl
4fc182de35 Forgotten declaration
Should have been removed in a6916d41

Source commit: 56826244476f1b2e80aa109510456f82d5615fc4
2026-10-08 00:35:55 +02:00
Martin Prikryl
c057d1d62c Bumping devel version to 6.6.5
Source commit: 7414ce374e4876772f7e49f55526a0ebe63f2360
2026-10-07 16:37:59 +02:00
Martin Prikryl
db4468a22b Merge remote-tracking branch 'origin/translations'
Source commit: 31a2bac4caeda42026acd7fc5df4a0977740436a
6.6.4-RC
2026-10-07 15:03:19 +02:00
Martin Prikryl
ac781f63fe Update to Expat 2.9.0
Source commit: 2d2fc87baa17104082d3ddaab96216a3f342f60a
2026-10-07 11:03:29 +02:00
Martin Prikryl
5c76bf8072 Merge branch 'thirdparty'
Source commit: 96da2dafb48f70ed7cf98a429d23bb512b2b3b8f
2026-10-07 11:02:43 +02:00
Martin Prikryl
2724e8a53f Issue 2466 – Temporary directory structure for edited remote file reflected the current remote directory path rather than an actual path of the edited file
https://winscp.net/tracker/2466

Source commit: 639bddac91fecf53e0c3b5fd5835e9dd1c5ab0a5
2026-10-07 11:01:58 +02:00
Martin Prikryl
9c19e6d63c Expat 2.9.0
Source commit: 9520d6bddf1be7c834a80342838ef015b8ea9999
2026-10-07 00:39:45 +02:00
Martin Prikryl
b6b2b34acf Obsolete comment
Source commit: dcb9f632e911b3f04ee9a42ed0126ce98b0e236a
2026-10-07 00:38:28 +02:00
Martin Prikryl
0b3eca59ad Not scanning local directory symlinks pointing to network drives
Source commit: 19baa413392caabbb7afea6eb2b925cc98ca5076
2026-10-07 00:36:56 +02:00
Martin Prikryl
a9fa4a583a Translating TDriveViewInt's ReadSubDirs, DoScanDir and AddChildNode to C++ before modifying them
Source commit: f8c0cdbb0c4e8665eac9a9b9526d6714ed6457cf
2026-10-07 00:36:09 +02:00
Martin Prikryl
a6916d4101 Unused code obsoleted by 64050d10
Source commit: 92ea806f97f6683c5e5158c7236b49ce04aa620c
2026-10-03 08:42:27 +02:00
Martin Prikryl
86413f4712 Removing some unused Jcl code
Source commit: 72d2f60cf89412442d2f4029cb43ae9d02ed2636
2026-10-03 08:41:44 +02:00
Martin Prikryl
ea94f08215 Update to OpenSSL 3.5.9
Source commit: 4828d4a32aea4cb4489052ba450a1c868321f5e9
2026-10-02 17:55:17 +02:00
Martin Prikryl
53e9fa9cba Merge branch 'thirdparty'
# Conflicts:

#	libs/openssl/crypto/init.c

Source commit: 4564413da7872ac62838988bc1fff4e10082b5a4
2026-10-01 00:39:32 +02:00
Martin Prikryl
76ef84ee9f OpenSSL 3.5.9
Source commit: 576ad7c53795c8bad0ac3c54f37ffd83319c0077
2026-10-01 00:38:31 +02:00
Martin Prikryl
0707234bbe Removing all debug info sources except for .map file
Seems to have no significant impact on release build (have some on debug build).
With 64-bit build, no impact at all. With 32-bit, there are some differences, but all seem to be in misidentified frames anyway (which are volatile, so the impact might not be due to change in sources)

Source commit: b8d538dd403c7f78778247278bed6e685a5589fb
2026-10-01 00:37:56 +02:00
Martin Prikryl
e13157118a Using themed button drop down menu on Overwrite confirmation box
Source commit: ca02aa76c6041990b5341fecf5f5c25f74a9b2a2
2026-09-30 00:37:29 +02:00
Martin Prikryl
55800c95bd Issue 2463 – Show keyboard accelerators on overwrite confirmation box when keyboard modifier is pressed
https://winscp.net/tracker/2463

Source commit: 493db416a23e77c36621f7443eafbcb685a3512a
2026-09-30 00:35:59 +02:00
Martin Prikryl
8526f3abad Bug fix: System context menus always show in dark mode
Source commit: 1a3891cbab7a71c19b9d8ebdea444f5972abe15a
2026-09-30 00:35:13 +02:00
Martin Prikryl
25d00e3382 Removing references to unused JclStreams unit
Source commit: 3d8b5558637974ca5494d73d55bb044f866b01a8
2026-09-26 00:38:04 +02:00
Martin Prikryl
48944c9dcd Merge branch 'thirdparty'
Source commit: 844378810bafe8357370c90ca53f6ef2a7b84bd1
2026-09-26 00:37:23 +02:00
Martin Prikryl
1135b2ee10 JclStreams unit is not being used
Source commit: 481d128d5f19978a3b955b62c9c53bde3c25c23c
2026-09-26 00:36:44 +02:00
Martin Prikryl
84ebbff07d Merge branch 'thirdparty'
Source commit: da48e14c3ed2a1a386cd3f0f6cec5655081551a7
2026-09-26 00:36:22 +02:00
Martin Prikryl
e3f0c9318c JCL 2.9.9331 (as of 10b92737)
includes: Fix two bugs in the JCLDebug address to source lookup
(though it does not seem to have any positive impact on exception stack trace collection)

Source commit: e49c36ce4a97a6eeb4a1f43743893fdab854ba50
2026-09-26 00:35:44 +02:00
Martin Prikryl
aa84919ea2 Merge branch 'thirdparty'
Source commit: 2020b08ce3f76bbae0802da3b6fbfc79817ade7d
2026-09-26 00:35:22 +02:00
Martin Prikryl
6814e509cf Expat 2.8.5
Source commit: 1faef679c1850b80451cfda839d0a3b1ea197c41
2026-09-26 00:34:43 +02:00
Martin Prikryl
291480c8b9 Consistent Windows line endings
Source commit: 94c3462d98a2cd24d4fee4d9aa85be0d715d5b1b
2026-09-25 14:39:44 +02:00
Philip Marsh
f242627930 Chore: Move folder structure of ADMX files 2026-09-25 14:19:52 +02:00
Philip Marsh
b98224fb8d Add files via upload 2026-09-25 14:19:52 +02:00
Philip Marsh
46b40a0508 Add README for WinSCP Administrative Template
This README provides comprehensive documentation for the WinSCP Administrative Template, including included policies, registry locations, language resources, and instructions for Intune import and Active Directory integration.
2026-09-25 14:19:52 +02:00
Martin Prikryl
64050d10c7 Removing no longer working OneDrive code
Source commit: 8a28dd98ba1cf2216dbd176900d23c8acf13685c
2026-09-25 00:36:53 +02:00