Bug#970580: licenseutils: Memory access error

2020-12-12 Thread handsome_feng
Tags: patch


Hi,

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,


so I added the CURLOPT_FOLLOWLOCATION to tell libcurl to follow redirection.


Regards,

handsome_feng

--- 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));


OpenPGP_0x9BB850C013111F0C.asc
Description: application/pgp-keys


OpenPGP_signature
Description: OpenPGP digital signature


Processed: Re: Bug#970580: licenseutils: Memory access error

2020-09-22 Thread Debian Bug Tracking System
Processing control commands:

> forwarded -1 https://savannah.nongnu.org/bugs/?59157
Bug #970580 [licenseutils] licenseutils: Memory access error
Set Bug forwarded-to-address to 'https://savannah.nongnu.org/bugs/?59157'.

-- 
970580: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970580
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#970580: licenseutils: Memory access error

2020-09-22 Thread Mattia Rizzolo
Control: forwarded -1 https://savannah.nongnu.org/bugs/?59157

On Sat, Sep 19, 2020 at 10:24:38AM +0200, Mechtilde Stehmann wrote:
> 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


thank you, forwarded upstream at the above URL.

-- 
regards,
Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540  .''`.
More about me:  https://mapreri.org : :'  :
Launchpad user: https://launchpad.net/~mapreri  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-


signature.asc
Description: PGP signature


Bug#970580: licenseutils: Memory access error

2020-09-19 Thread Mechtilde Stehmann
Package: licenseutils
Version: 0.0.9-3+b1:
Severity: grave

I want to work out the different tools checking the license for
packaging as described at

https://wiki.debian.org/CopyrightReviewTools

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


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (400, 'testing'), (300, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: 5.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8),
LANGUAGE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Kind regards
-- 
Mechtilde Stehmann
## Debian Developer
## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F



signature.asc
Description: OpenPGP digital signature