[bug #45833] support load/save of classdef objects
Markus Mützel <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
Follow-up Comment #97, bug #45833 (group octave):
I agree that it is hard to see how MATLAB is handling these values internally
just by looking at the bytes in the saved file.
But they are documenting that the "Maximum Size of Each Variable" in the '-v6'
and '-v7' formats is "2^31 bytes per variable". So, I'm *guessing* that they
tread all of these indices and offsets as signed integers internally.
https://www.mathworks.com/help/matlab/ref/save.html#btox10b-1-version
The attached patch would probably fix the potential integer overflow and
alignment issues. (At least, the ones that the compiler warned about.) I tried
to make only minimal changes and not change any function interfaces.
If that looks good to you, I'd like to add a proper commit message and push
that change to the stable branch in time for Octave 11.
(file #58223)
_______________________________________________________
Additional Item Attachment:
Name: bug45833-alignment-overflow-v0.patch Size: 6.0KiB
<https://file.savannah.gnu.org/file/bug45833-alignment-overflow-v0.patch?file_id=58223>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-5c89ea1de46466fa27ad9decaeba153e39db01be.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?45833>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaYcXUwAKCRCqLAuaBUf3 TjYSAP9ErIUvBQdwPquPTcYsazobFYlSfEjKUDwZjaasbIwDiwEA+FoZjYHZkMKl k1trIgK1KvxyXhLU3vavuX3/95VWTgI= =jMOy -----END PGP SIGNATURE-----