|
From: | Markus Mützel |
Subject: | [Octave-bug-tracker] [bug #63930] fprintf writes incorrect characters when converting the encoding |
Date: | Tue, 4 Apr 2023 12:38:24 -0400 (EDT) |
Follow-up Comment #58, bug #63930 (project octave): `srclen=140255252715919` doesn't look right. That looks more like it is a pointer address in the range of the other pointers appearing in the backtrace (0x7F8FB884198F). It is calculated like this in `octave::string::codecvt_u8::do_out` in oct-string.cc:653: std::size_t srclen = (from_end-from-pop_end) * sizeof (InternT); `pop_end` should be 0. `sizeof (InternT)` should be 1 (InternT is char). So, it should be the difference between the addresses pointed to by `from_end` and `from`. Theoretically that should be a maximum of 64 in that example... _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?63930> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |