FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Masters Of The Universe

LinkBack Thread Tools
Old 06-19-2012, 12:15 AM
David Collett
Default Fwd: patch for chntpw

Hi Debian and Ubuntu chntpw maintainers,

See below for a small patch which fixes a corruption issue when
editing REG_MULTI_SZ values.
I've sent it to Petter (upstream author) who has accepted it.
I don't believe he has any plans to make a new release soon though, so
you may wish to add it as a debian/patch in the meantime.


---------- Forwarded message ----------
From: David Collett <david.collett@gmail.com>
Date: 18 June 2012 11:38
Subject: patch for chntpw
To: pnh@pogostick.net


Attached is a very small patch to fix a bug with REG_MULTI_SZ editing.
The multi-sz was not correctly null terminated, leading to possible
erroneous extra values.
The original code incorrectly incremented the 'in' variable before
null-terminating the array causing it to skip one byte before
terminating. (Valgrind was able to find this error).
The patch simply switches the order of two lines.

Ubuntu-motu mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-motu

Thread Tools

All times are GMT. The time now is 05:13 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org