Article View: bionet.software.acedb
Article #65Re: Off-by-one in $obj->asGif after upgrading to ACEDB_4.9s
From: Ed Griffiths
Date: Tue, 09 Sep 2003 12:48
Date: Tue, 09 Sep 2003 12:48
32 lines
2894 bytes
2894 bytes
Morten, > After upgrading to ACEDB_4.9s, sgifserver seems to provide gif-images > where the first byte is NULL and the last byte is dropped. > > AcePerl now outputs faulty gifs with the obj->asGif method (Object.pm). As > AcePerl has not changed, and giface client produces good gifs I assume > something changed in sgifserver. Anyone else seen this? > > I also tested 4.9u with same results. > Compiled with gcc 3.2.2 on Linux RH9, -O2/-03 optimation. I have looked into this and its been caused by a change to a low level routine in acedb changing which resulted in a null byte being inserted in front of the GIF image in the datastream. I think you see the last byte dropped because the aceperl code is now one byte out. I am checking with Lincoln what we should do about this, the null byte in the datastream makes some sense in fact so the answer may be to change the aceperl code to handle it. Once its fixed I'll put a note here. Ed -- ------------------------------------------------------------------------ | Ed Griffiths, Acedb development, Informatics Group, | | Wellcome Trust Sanger Institute, Wellcome Trust Genome Campus, | | Hinxton, Cambridge CB10 1SA, UK | | | | email: edgrif@sanger.ac.uk Tel: +44-1223-494780 Fax: +44-1223-494919 | ------------------------------------------------------------------------
Technical Details
Message-ID:
<3F5DCBFF.D7A08E6@sanger.ac.uk>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!hgmp.mrc.ac.uk!net.bio.netReferences:
<Pine.LNX.4.44.0307070536510.32288-100000@untamo.ngb.se>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6d40,196502b48d6a5094 X-Google-Attributes: gidf6d40,public X-Google-ArrivalTime: 2003-09-09 05:48:22 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!hgmp.mrc.ac.uk!net.bio.net From: Ed Griffiths <edgrif@sanger.ac.uk> Newsgroups: bionet.software.acedb Subject: Re: Off-by-one in $obj->asGif after upgrading to ACEDB_4.9s Date: 9 Sep 2003 13:48:20 +0100 Organization: Sanger Institute Lines: 33 Sender: mod-ace@hgmp.mrc.ac.uk Approved: BIOSCI Approval Key <biosci-approval-key@net.bio.net> Message-ID: <3F5DCBFF.D7A08E6@sanger.ac.uk> References: <Pine.LNX.4.44.0307070536510.32288-100000@untamo.ngb.se> NNTP-Posting-Host: mercury.hgmp.mrc.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: niobium.hgmp.mrc.ac.uk 1063111700 29917 193.62.192.80 (9 Sep 2003 12:48:20 GMT) X-Complaints-To: news@net.bio.net NNTP-Posting-Date: Tue, 9 Sep 2003 12:48:20 +0000 (UTC) X-Original-To: bionet-software-acedb@net.bio.net X-Accept-Language: en X-Auth: PGPMoose V1.1 PGP bionet.software.acedb iQCVAwUAP13MEaCIqsWvyF5FAQH6PgP/V7O/zWDeCxxetX5avHfKL9ggS3tAAWtv VZCUDU36GEGgDGx1sYGgFy7MzLkjsVKewQEWu7EMWpmvOfGqPQ48J+p/jiqMUevV 8N2S6ploKC2OCUxC6buTRK++eL5hIpmbrcosZ2UxoYur/atemtSZuY1xtCYmQssU fMNi37S/Q6Q= =WirF