octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #38974] strings package: base64decode retains


From: Oliver Heimlich
Subject: [Octave-bug-tracker] [bug #38974] strings package: base64decode retains trailing zeros
Date: Tue, 07 Jul 2015 21:00:37 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.7.0

Follow-up Comment #7, bug #38974 (project octave):

I did a major review of the function's code and the bug is now fixed in the
repository
https://sourceforge.net/p/octave/strings/ci/db1ee7036df04061b20c51dc10545993ecf4a183/

As for the base64_* functions in core: base64_encode is already good for
general use and a valid replacement for this packages function. Allowing
strings as parameters would be a bonus.

However, base64_decode should be changed and decode into uint8 vectors by
default. These could then be typecast into binary64 or string or whatever by
the user. To decode into binary64 is not very userful, because it limits byte
sizes to multiples of 8. Having an optional type parameter for base64_decode
would be a bonus, but should not require a lot more code than calling typecast
in most cases.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38974>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]