POV-Ray : Newsgroups : povray.bugreports : Bug introduced in the text{} code during v3.8 code development Server Time
31 Mar 2025 00:33:57 EDT (-0400)
  Bug introduced in the text{} code during v3.8 code development (Message 1 to 1 of 1)  
From: William F Pokorny
Subject: Bug introduced in the text{} code during v3.8 code development
Date: 8 Mar 2025 11:29:18
Message: <67cc705e@news.povray.org>
For the record.

I finally found and fixed a bug introduced in the text{} object code 
during v3.8 code development. It was occasionally(*) causing segment 
faults / invalid memory accesses.

The code was part of the code backed out late for the v3.8 beta releases 
- so our two v3.8 beta releases are OK. Official v3.8 releases prior to 
those two are likely exposed to the bug.

The bug still exists in POV-Ray's master 4.0 branch code.

The v3.8 yuqk fork will be fixed in the upcoming R19 release.

In truetype.cpp and the function ProcessCharMap(), change the line:

     for(j = 0; j <= ffile->info->cmapSelector.size(); ++j)
to
     for(j = 0; j <  ffile->info->cmapSelector.size(); ++j)

Bill P.

(*) - Only crashing for me on the order of 1/1000 text{} object 
creations with a few fonts; while much less - or apparently not at all 
with other fonts.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.