[OpenSmalltalk/opensmalltalk-vm] 27a9c7: Fix potential buffer overrun in UNIX file plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[OpenSmalltalk/opensmalltalk-vm] 27a9c7: Fix potential buffer overrun in UNIX file plugin

Eliot Miranda-3
 
  Branch: refs/heads/Cog
  Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
  Commit: 27a9c75c56e0cb9547721eb39f33cd754f92ccbd
      https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/27a9c75c56e0cb9547721eb39f33cd754f92ccbd
  Author: Nicolas Cellier <[hidden email]>
  Date:   2017-05-26 (Fri, 26 May 2017)

  Changed paths:
    M platforms/unix/plugins/FilePlugin/sqUnixFile.c

  Log Message:
  -----------
  Fix potential buffer overrun in UNIX file plugin

Note: this is a minimal fix for the bug reported by Monty
http://forum.world.st/Please-review-and-merge-A-commit-to-fix-race-conditions-is-sqFileOpen-buffer-overflows-in-sqUnixFilee-td4920046.html
The patch provided by Monty was much more aggressive - see PR #82
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/82
Nobody had enough energy to review all implications, thus the minimalist replacement.