Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(384)

Issue 5500097: vac: fix segfault on DMSYMLINK and DMDEVICE

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by 0intro
Modified:
13 years ago
Reviewers:
CC:
rsc, codebot
Visibility:
Public.

Description

Fix segfault when the first archived file is DMSYMLINK or DMDEVICE. Reinitialize the buffer to zero before calling readlink.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M src/cmd/vac/vac.c View 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 2
0intro
13 years ago (2012-01-02 12:48:15 UTC) #1
rsc
13 years ago (2012-01-16 22:06:43 UTC) #2
*** Submitted as 8dfddf14ba55 ***

vac: fix segfault on DMSYMLINK or DMDEVICE

Fix segfault when the first archived file is DMSYMLINK or DMDEVICE.
Reinitialize the buffer to zero before calling readlink.

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5500097

Committer: Russ Cox <rsc@swtch.com>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b