[tex4ht] [bug #611] Random SIGSEGV of tex4ht due to invalid memory accesses

2023-10-13 Thread Karl Berry
Update of bug #611 (project tex4ht):

  Status:None => Ready For Test 

___

Follow-up Comment #4:

Hi again Oliver - well, I couldn't discern any plausible way to initialize the
htf_4hf array on the fly, so I just memset the whole array to zero after it is
allocated. That is, after this line:

htf_4hf = m_alloc(struct htf_4hf_rec, 256);

I added (some comments and):
memset (htf_4hf, 0, 256 * sizeof (struct htf_4hf_rec));

and valgrind was blessedly silent afterwards. The HTML output on your sample
file was unchanged. I didn't test anything else specifically.

It's been a while since I called memset by hand :), so please do let me know
if you see problems. (Eitan never wrote a wrapper for calloc as he did for
malloc, so this seemed the simplest way.)

I also committed the new source to TL, r68541.
https://tug.org/svn/texlive/trunk/Build/source/texk/tex4htk/tex4ht.c

And I also installed a new tex4ht binary for x86_64-linux (only) since, well,
why not (r68542). I'm not sure if you are building from source or using our
binaries. Let me know if I need to do more to propagate the fix so you'll get
it.

Thanks again for doing all the real work here. 

___

Reply to this item at:

  

___
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



[tex4ht] [bug #612] tex4ht gives compile error when using transparent package

2023-10-13 Thread Michal Hoftich
Follow-up Comment #1, bug #612 (project tex4ht):

Thanks for the report. I've added my anwser on TeX.sx and updated TeX4ht
sources with the support.

___

Reply to this item at:

  

___
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



[tex4ht] [bug #612] tex4ht gives compile error when using transparent package

2023-10-13 Thread Nasser M. Abbasi
URL:
  

 Summary: tex4ht gives compile error when using transparent
package
 Project: tex4ht
Submitted by: nma123
Submitted on: Fri Oct 13 08:01:32 2023
Category: None
Priority: 5 - Normal
Severity: 5 - Normal
  Status: None
 Privacy: Public
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Discussion Lock: Any

___

Details:

Reference:

https://tex.stackexchange.com/questions/698403/tex4ht-gives-compile-error-when-using-transparent-package


I was trying https://ctan.org/pkg/transparent package. I get an error when
using it with tex4ht. Same code works OK in lualatex and pdf.

Is there a way to make it work with tex4ht? Here is MWE


\documentclass[12pt]{book}
\usepackage{graphicx}
\usepackage{transparent}
\begin{document} 

some text here

More text here

\transparent{1}\includegraphics[width=0.5\textwidth]{example-image-a}

More text here

More text here
\end{document}


Compiled using

make4ht  -ulm default -a debug foo2.tex "mathjax,htm,nostyle"

gives

--
/usr/local/texlive/2023/texmf-dist/tex/latex/l3backend/l3backend-dvips.def)
(./foo2.aux) (/usr/local/texlive/2023/texmf-dist/tex/latex/base/ts1cmr.fd)
! Undefined control sequence.
l.12 \transparent
   {1}\includegraphics[width=0.5\textwidth]{example-image-a}
? 
-


TL 2023 on Linux.

--Nasser




___

Reply to this item at:

  

___
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/