mirror of
https://github.com/serge1/ELFIO.git
synced 2024-12-26 18:15:40 +00:00
Just formatting
This commit is contained in:
parent
bb572fb848
commit
41f4012d49
@ -284,8 +284,8 @@ template <class T> class section_impl : public section
|
|||||||
( *translator )[( *convertor )( header.sh_offset )];
|
( *translator )[( *convertor )( header.sh_offset )];
|
||||||
Elf_Xword size = get_size();
|
Elf_Xword size = get_size();
|
||||||
if ( nullptr == data && SHT_NULL != get_type() &&
|
if ( nullptr == data && SHT_NULL != get_type() &&
|
||||||
SHT_NOBITS != get_type() &&
|
SHT_NOBITS != get_type() && sh_offset <= get_stream_size() &&
|
||||||
sh_offset <= get_stream_size() && size <= (get_stream_size() - sh_offset)) {
|
size <= ( get_stream_size() - sh_offset ) ) {
|
||||||
data.reset( new ( std::nothrow ) char[size_t( size ) + 1] );
|
data.reset( new ( std::nothrow ) char[size_t( size ) + 1] );
|
||||||
|
|
||||||
if ( ( 0 != size ) && ( nullptr != data ) ) {
|
if ( ( 0 != size ) && ( nullptr != data ) ) {
|
||||||
|
@ -68,8 +68,8 @@ int main( int argc, char** argv )
|
|||||||
std::ifstream proc_maps( std::string( "/proc/" ) + argv[1] + "/maps" );
|
std::ifstream proc_maps( std::string( "/proc/" ) + argv[1] + "/maps" );
|
||||||
if ( !proc_maps ) {
|
if ( !proc_maps ) {
|
||||||
std::cout << "Can't open "
|
std::cout << "Can't open "
|
||||||
<< std::string( "/proc/" ) + argv[1] + "/maps"
|
<< std::string( "/proc/" ) + argv[1] + "/maps" << " file"
|
||||||
<< " file" << std::endl;
|
<< std::endl;
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user