ykchalresp fails on armel

Bug #884411 reported by Serge Hallyn
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
yubikey-personalization (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

ykchalresp uses a char to store the getopt return value and then compares it to -1 to detect the end of options. However char is usigned by default on arm, so this breaks.

The trivial one-line fix is to turn 'char c' into a signed char.

Tags: patch
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :
Changed in yubikey-personalization (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Fredrik Thulin (fredrikt) wrote :

Correct fix is to use 'int' since that is the return type of getopt(3).

Fixed in commit a8e3af907 of upstream project.

/Fredrik

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Patch which fixes the issue for me" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Fredrik Thulin (fredrikt) wrote :

Attached is the patch I committed to the upstream project, that Serge agrees is a better fix.

I'm a novice in handling Launchpad bug reports. Can someone please advice me what I should do now with this report? Should it be kept open until we release a new version of yubikey-personalization?

Thanks

/Fredrik

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 884411] Re: ykchalresp fails on armel

@Fredrik,

I think you can mark it Fix Committed (not Released) assuming a new
release is coming soon, since the fix is committed upstream.

(see https://wiki.ubuntu.com/Bugs/Status for status definitions)

Revision history for this message
Fredrik Thulin (fredrikt) wrote :

We plan on releasing 1.6.2 with the fix early next week, so I followed the suggestion and marked it Fix Committed.

/Fredrik

Changed in yubikey-personalization (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Charlie_Smotherman (cjsmo) wrote :

1.6.3-1 is the current precise version. Setting to fixed released

Changed in yubikey-personalization (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.