summaryrefslogtreecommitdiff
path: root/src/fr-process.c
AgeCommit message (Collapse)AuthorFilesLines
2019-03-21[Security] fr-process: avoid 'strcpy' and 'strcat'Pablo Barciela1-16/+16
Use 'g_strlcpy' instead of 'strcpy', and 'g_strlcat' instead of 'strcat' Fixes Clang static analyzer warnings: fr-process.c:696:5: warning: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 strcpy(rarfile, argv[2]); ^~~~~~ fr-process.c:698:5: warning: Call to function 'strcat' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcat'. CWE-119 strcat(rarfile, "part1.rar"); ^~~~~~ fr-process.c:705:32: warning: Out of bound memory access (accessed memory precedes memory block) rarfile[strlen(rarfile)-5]=0; ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
2019-03-14fr-process: Fix memory leakrbuj1-3/+1
Fixes Clang static analyzer warning: fr-process.c:740:3: warning: Potential leak of memory pointed to by 'argv' g_warning ("The files could not be move: %s\n", commandline); ^~~~~~~~~
2018-12-02Adding pause and start functionszhuyaliang1-3/+57
change kill mode
2017-03-05Fix: compress rar split into volumesZenWalker1-3/+13
Fixes #127
2017-02-23Fix: compress 7z split into volumesZenWalker1-1/+29
After https://github.com/mate-desktop/engrampa/commit/0b3b7eef61287213308e14639444e1953b52ac04 the compress with volumes doesn't work This is the fix for 7z files, all the files will be move from the temp folder to the current folder at same time Fixes partially #127 Fix: compres .tar.7z
2014-11-22use a boxed type to pass the error to the 'done' signalinfirit1-6/+12
Based on FR commit: 4b645f57c856928c508dd74c31e1bfb2132368e1 From: Paolo Bacchilega <[email protected]>
2014-11-20When canceling an operation kill all the sub-processes as wellinfirit1-1/+6
create a new process group and kill the process group to stop the operation. Based on FR commit: baff9720f59d85d5118ca0220b7c680dc6964d30 From: Paolo Bacchilega <[email protected]>
2012-10-09Fixed fsf addresses. Closes #4.Steve Zesch1-1/+1
2011-11-30many renames from file-roller to engrampaStefano Karapetsas1-1/+1
2011-11-09initialPerberos1-0/+1028