maincgicc - Support: sr #110467, wrong file length if file upload...

 
 

sr #110467: wrong file length if file upload via POST as "multipart/form-data"

Submitter:  None
Submitted:  Fri 26 Mar 2021 11:55:40 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 26 Mar 2021 11:55:40 AM UTC, original submission:  

Hi,

If you upload a file via POST as "multipart/form-data" to a C++ program
compiled with libcgicc3, the transmitted file length is 2 bytes too short.

I have attached two files that can be used to reproduce the problem. The C++
file must be compiled with 'g++ test_file_upload_post_cgicc.cpp -lcgicc'. With
the attached perl test file you can trigger the problem. Then evaluate the
output of the debug.* files and compare it with the file that was uploaded. In
the Perl test this is 4bytes large.

With best regards

Andreas

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #51142:  validate.t added by None (1KiB - application/x-perl)
file #51143:  test_file_upload_post_cgicc.cpp added by None (2KiB - text/x-c++src)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-26 None Attached File- Added validate.t, #51142
        Attached File- Added test_file_upload_post_cgicc.cpp, #51143

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code