vfs: check userland buffers before reading them.
[haiku.git] / src / bin / debug / profile / Image.cpp
blob656075a741f881f08bcbce29497eca9037766d8b
1 /*
2 * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
6 #include "Image.h"
9 Image::Image(SharedImage* image, const image_info& info, team_id owner,
10 int32 creationEvent)
12 fImage(image),
13 fID(info.id),
14 fOwner(owner),
15 fLoadDelta((addr_t)info.text - (addr_t)image->Info().text),
16 fCreationEvent(creationEvent),
17 fDeletionEvent(-1)
19 fImage->AcquireReference();
23 Image::~Image()
25 fImage->ReleaseReference();