Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Nonsense. Space is blue and birds fly through it. -- Heisenberg


devel / comp.os.msdos.djgpp / memalign has problem with _align > 8 - cause crash in OpenJPEG library

SubjectAuthor
o memalign has problem with _align > 8 - cause crash in OpenJPEG libraryRayeR

1
memalign has problem with _align > 8 - cause crash in OpenJPEG library

<6ebec8b4-2dd0-4e7c-92ed-2a72b8e0ad44n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=390&group=comp.os.msdos.djgpp#390

  copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:a05:622a:1999:b0:40f:e2a5:3100 with SMTP id u25-20020a05622a199900b0040fe2a53100mr38791qtc.6.1694494052591;
Mon, 11 Sep 2023 21:47:32 -0700 (PDT)
X-Received: by 2002:a17:903:22cc:b0:1c3:1ceb:97b6 with SMTP id
y12-20020a17090322cc00b001c31ceb97b6mr4528040plg.7.1694494052135; Mon, 11 Sep
2023 21:47:32 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.djgpp
Date: Mon, 11 Sep 2023 21:47:31 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=89.176.63.76; posting-account=Q0wMHAoAAADjYrghh94FTf6YnbpTqZgp
NNTP-Posting-Host: 89.176.63.76
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6ebec8b4-2dd0-4e7c-92ed-2a72b8e0ad44n@googlegroups.com>
Subject: memalign has problem with _align > 8 - cause crash in OpenJPEG library
From: rayer314@gmail.com (RayeR)
Injection-Date: Tue, 12 Sep 2023 04:47:32 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1589
 by: RayeR - Tue, 12 Sep 2023 04:47 UTC

Hi, I don't know if it's known bug or limitation, but i found this problem during compilation of OpenJPEG 1.5.0 library where demo programs crashed. After some fiddling I found that problem is in memalign() from current libc that OpenJPEG used with align argument of value 16. When I lower the align to 8 it worked then without crashing. I decided to use _mm_malloc() insteasd that works with align of value 16 OK.
It may cause problems with other code that use memalign() so can someone patch the code in libc?

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor