vfs: check userland buffers before reading them.
[haiku.git] / src / bin / makeudfimage / Attribute.cpp
blob31ccc71d1c444b1aae681f859790c799e2d5bf06
1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
3 // by the MIT License.
4 //
5 // Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net
6 //----------------------------------------------------------------------
8 /*! \file Attribute.h
10 BDataIO wrapper around a given attribute for a file. (implementation)
13 #include "Attribute.h"
15 Attribute::Attribute(BNode &node, const char *attribute)
16 : fNode(node)
17 , fAttribute(attribute)
21 ssize_t
22 Attribute::Read(void *buffer, size_t size)
24 return B_ERROR;
27 ssize_t
28 Attribute::Write(const void *buffer, size_t size)
30 return B_ERROR;