Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  patching- what's fuzz?
« previous next »
  • Print
Pages: [1]

Author Topic: patching- what's fuzz?  (Read 2298 times)

Offline ace214

  • Member
  • *
  • Posts: 33
patching- what's fuzz?
« on: October 16, 2006, 11:04:01 PM »
what is the "fuzz" when applying patches?
Logged

Offline LinusN

  • Member
  • *
  • Posts: 1914
Re: patching- what's fuzz?
« Reply #1 on: October 17, 2006, 02:42:07 AM »
It's when the patch program manages to apply the patch, even though the line numbers don't match exactly.
Logged
Archos Jukebox 6000, Recorder, FM Recorder/iAudio X5/iriver H1x0, H3x0/Toshiba Gigabeat F20/iPod G5, G5.5

Offline ace214

  • Member
  • *
  • Posts: 33
Re: patching- what's fuzz?
« Reply #2 on: October 18, 2006, 08:04:21 PM »
then what's the difference between that and offset?
Logged

Offline LinusN

  • Member
  • *
  • Posts: 1914
Re: patching- what's fuzz?
« Reply #3 on: October 19, 2006, 02:33:29 AM »
A patch file contains both line number info and a context, i.e a few lines from the original file to help synchronize if the original file has changes slightly.

If goes to the line number stated in the patch file and looks up and down in the file for lines matching the context of the hunk. If it doesn't find a match, it removes the first and last line of the context and tries again. The number of lines removed is the "fuzz factor". If it finds a match, it remembers the line offset and applies it to the next hunk.

Clear as mud, no? :-)
Logged
Archos Jukebox 6000, Recorder, FM Recorder/iAudio X5/iriver H1x0, H3x0/Toshiba Gigabeat F20/iPod G5, G5.5

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  patching- what's fuzz?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.22 seconds with 20 queries.