For discussion of Alpine Linux development and developer support

2 2

[alpine-devel] apk segmentation fault - please make it utf-8 compliant

Alba Pompeo
Details
Message ID
<CAJDAfTCsyp+34=C2FOV54zAnrSXStkbCZR9ifknDnZsTdTPBjw@mail.gmail.com>
Sender timestamp
1459680620
DKIM signature
missing
Download raw message
Hello to the mailing list.

$ apk add à
Segmentation fault

$ apk add ê
Segmentation fault

$ apk add û
Segmentation fault

And so far...

A good program should be UTF-8 compliant.
Or to at least give an error when you feed special chars, but it
should never segfault on such acceptable use-case.

Thank you.


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Alba Pompeo
Details
Message ID
<CAJDAfTBCsN8aP=hDKh3L_aU3mV7ASJ_TKzPPdWgyW7n_YZmahA@mail.gmail.com>
In-Reply-To
<20160403160833.783c6dcf@vostro> (view parent)
Sender timestamp
1459689354
DKIM signature
missing
Download raw message
Quick fix, nice! I wish you manage to make it utf8 compliant too.
Thanks.


On Sun, Apr 3, 2016 at 10:08 AM, Timo Teras <timo.teras@iki.fi> wrote:
> On Sun, 3 Apr 2016 07:50:20 -0300
> Alba Pompeo <albapompeo@gmail.com> wrote:
>
>> Hello to the mailing list.
>>
>> $ apk add à
>> Segmentation fault
>>
>> $ apk add ê
>> Segmentation fault
>>
>> $ apk add û
>> Segmentation fault
>>
>> And so far...
>>
>> A good program should be UTF-8 compliant.
>> Or to at least give an error when you feed special chars, but it
>> should never segfault on such acceptable use-case.
>
> The 8-bit cleanness issue has been fixed with:
> http://git.alpinelinux.org/cgit/apk-tools/commit/?id=9039dbe06cfe123d04c3306f7316ba91013fc5e6
>
> But need to look at making it really utf8 compliant. I think certain
> utf8 sequence might still confuse it.
>
> Thanks for the report.
>
> /Timo


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Timo Teras
Details
Message ID
<20160403160833.783c6dcf@vostro>
In-Reply-To
<CAJDAfTCsyp+34=C2FOV54zAnrSXStkbCZR9ifknDnZsTdTPBjw@mail.gmail.com> (view parent)
Sender timestamp
1459688913
DKIM signature
missing
Download raw message
On Sun, 3 Apr 2016 07:50:20 -0300
Alba Pompeo <albapompeo@gmail.com> wrote:

> Hello to the mailing list.
> 
> $ apk add à
> Segmentation fault
> 
> $ apk add ê
> Segmentation fault
> 
> $ apk add û
> Segmentation fault
> 
> And so far...
> 
> A good program should be UTF-8 compliant.
> Or to at least give an error when you feed special chars, but it
> should never segfault on such acceptable use-case.

The 8-bit cleanness issue has been fixed with:
http://git.alpinelinux.org/cgit/apk-tools/commit/?id=9039dbe06cfe123d04c3306f7316ba91013fc5e6

But need to look at making it really utf8 compliant. I think certain
utf8 sequence might still confuse it.

Thanks for the report.

/Timo


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---