> bug: diff cmd --from wrong memory access
> 
> src/diffcmd.c
> void diff_cmd(void)
> 
> else{
>       printf("from:(%s) to(%s) branch(%s)\n",zFrom,zTo,zBranch);
>     db_find_and_open_repository(0, 0);
>     // g variable address change
>     // zFrom referring to the wrong memory
>       printf("from:(%s) to(%s) branch(%s)\n",zFrom,zTo,zBranch);
>   }
> 
> fossil.exe diff --from notexist --to trunk
> 
> workaround for this bug : fossil_strdup or mprintf
> 

Sorry, I do not tried in the trunk.

I was tried in the trunk.
No longer reproduce.
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to