-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apply most patches in chw's repository #26
Conversation
Why was this closed? |
my mistake, I'm going to reopen it
…-- M
On 8/13/24 16:37, Peter da Silva wrote:
Why was this closed?
—
Reply to this email directly, view it on GitHub <https://github.com/
flightaware/tclcurl-fa#26#issuecomment-2286420731>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/
AACAF5OF4TOCMDTOWNQBTMDZRIK3HAVCNFSM6AAAAABMOAED2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBWGQZDANZTGE>.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Thank you! |
Looks like it would benefit from having enums matching the method/option lists in tclcurl.h, it would make tclcurl.c easier to follow. :) |
Do you have a test case that can reproduce the crash? |
Yes definitely
…-- M
On 8/13/24 16:44, Peter da Silva wrote:
Looks like it would benefit from having enums matching the method/option
lists in tclcurl.h, it would make tclcurl.c easier to follow. :)
—
Reply to this email directly, view it on GitHub <https://github.com/
flightaware/tclcurl-fa#26#issuecomment-2286436612>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/
AACAF5OJFS7BUECNJNTXDQDZRILVTAVCNFSM6AAAAABMOAED2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBWGQZTMNRRGI>.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
I have 3 cases. They have been tested on Ubuntu Noble, but also with a custom installation of Tcl 8.6.14 with optimizer disabled and symbols loaded
|
If you sync your branch with our master, the broken CI builds should be fixed here too. |
the Mac CI is legitimately failing on something involving In the There are a couple of other warnings as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like fine improvements. I've suggested a couple of places where snprintf could be used during the handle generation.
@resuna might want to review the entire PR also.
snprintf(tclCommand,500,"%s %s %s",curlData->fnmatchProc,pattern,filename); | ||
tclProcPtr=Tcl_NewStringObj(tclCommand,-1); | ||
|
||
tclProcPtr=Tcl_ObjPrintf("%s %s %s",curlData->fnmatchProc,pattern,filename); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be built up as a list? What if pattern contains spaces?
"-ftpsslauth", "-sourceurl", "-sourcequote", | ||
"-ftpaccount", "-ignorecontentlength", | ||
"-cookielist", "-ftpskippasvip", | ||
"-ftpfilemethod", "-localport", "-localportrange", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was anything actually changed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's easy to verify that the 2 option lists are just reorganized
int curlShareInitObjCmd (ClientData clientData, Tcl_Interp *interp, | ||
int objc,Tcl_Obj *CONST objv[]); | ||
int curlShareObjCmd (ClientData clientData, Tcl_Interp *interp, | ||
int objc,Tcl_Obj *CONST objv[]); | ||
int curlCleanUpShareCmd(ClientData clientData); | ||
|
||
#ifndef multi_h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any possibility that multi_h won't be set? multi.c (and thus multi.h) seem to be incorporated unconditionally in the config files.
I applied the last change suggested by Jeff. What is your policy for releasing? Is it worth a release? I'm making out of the whole stuff a package for Debian/Ubuntu, I can apply the new improvements as patches for the Debian packaging system but I rather prefer to release as is with a new patchlevel number |
after we merge this PR, we might want to also get PR 22 (I suspect there will be some minor merge conflicts), and then tag a new release. |
I've tagged v7.22.1 and left that other PR unmerged for now. It can be addressed in the future. |
Great! Thank you |
I applied to the current FA code for tclcurl the changes made in androwish's repository (https://www.androwish.org/index.html/tktview/b7f1f6c72d7026ef04b7e77b687de25a7cc836d7). I also reworked the curlWriteProcInvoke function that caused Tcl to segfault (!) when the call back definition was made by multiple words, like in the case where the callback is implemented by an object method.