From: Wolfgang Denk Date: Mon, 27 Jul 2009 20:15:51 +0200 Subject: [U-Boot] [PATCH] zlib: allow 0 as destination pointer In-Reply-To: References: <200907271730.36098.sr@denx.de> <05a201ca0ec5@st.com> <20090727150928.GA433@mail.gnudd.com> <20090727164031.GA3963@mail.gnudd.com> Message-ID: <20090727181551.89F34832E416@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear rhabarber1848, In message you wrote: > > this patch solves the inflate() error but now a watchdog reset is triggered > during decompression: ... > The neither the old nor the new code incorporate WATCHDOG_RESET() so the new You are wrong. The urrent code installs WATCHDOG_RESET as s.outcb() callback; see function zunzip() in "lib_generic/gunzip.c". > code seems to be slower than the old one which works. I have yet to dig > through the zlib code to insert some WATCHDOG_RESET() here and there like I > did with the LZMA code. I think this is the wrong thing to do. Use the provided callback instead. I wonder why you do not create a patch between the old original version and what wd have in U-Boot now (which should clearly show what has been changed to adapt this code for U-Boot), and then apply (if necessary, manually) that patch to the current version? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "You ain't experienced..." "Well, nor are you." "That's true. But the point is ... the point is ... the point is we've been not experienced for a lot longer than you. We've got a lot of experience of not having any experience." - Terry Pratchett, _Witches Abroad_