buglicenseutils - Bugs: bug #59157, Segmentation faults

 
 

bug #59157: Segmentation faults

Submitted by:  Mattia Rizzolo <mattia>
Submitted on:  Tue 22 Sep 2020 03:05:53 PM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 16 Dec 2020 04:42:31 PM UTC, comment #1: 

handsome_feng <jianfengli@ubuntukylin.com> added in the Debian bug that:

> I found this error is caused by the gpl url redirected from
> https://www.gnu.org/licenses/gpl-1.0 to
> https://www.gnu.org/licenses/old-licenses/gpl-1.0,
> <https://www.gnu.org/licenses/o>


And as such provided this patch:

--- a/src/url-downloader.c
+++ b/src/url-downloader.c
@@ -82,6 +82,7 @@ download (struct lu_state_t *state, char
   curl_easy_setopt (state->curl, CURLOPT_HTTPGET, 1);
   curl_easy_setopt (state->curl, CURLOPT_URL, url);
   curl_easy_setopt (state->curl, CURLOPT_WRITEDATA, fileptr);
+  curl_easy_setopt (state->curl, CURLOPT_FOLLOWLOCATION, 1L);
   curl_easy_perform(state->curl);
   fflush (fileptr);
   fsync (fileno (fileptr));

I'm going to apply that to the Debian package.

Mattia Rizzolo <mattia>
Tue 22 Sep 2020 03:05:53 PM UTC, original submission:  

Originally reported in Debian: https://bugs.debian.org/970580

Version: 0.0.9-3

At the first start I got

  licensing gpl: got unexpected response code 302 from www.gnu.org/licenses/gpl.txt

I also tested more options and get "Memory access error"

No option gives a result

Another example:

% licensing
licenseutils 0.0.9
Copyright (C) 2013, 2017 Ben Asselstine
This is free software with ABSOLUTELY NO WARRANTY.
For warranty details type `warranty'.
To select a license and commenting style use the `choose' command.
e.g. `choose gpl c++'
To see what license a file has use the `detect' command: e.g. `detect *.[ch]'
For a full list of commands type `help'.
// no-license> choose gpl c++
Segmentation fault
// no-license>

Right not I'm a tad unclear on how to get a backtrace from whatever subprocess is spawned.

Mattia Rizzolo <mattia>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.6