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

Issue 5500097: vac: fix segfault on DMSYMLINK and DMDEVICE

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by 0intro
Modified:
12 years, 4 months 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
12 years, 4 months ago (2012-01-02 12:48:15 UTC) #1
rsc
12 years, 4 months 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