General :: Windows - Code/software Access Locations In Memory That It's Not Supposed To?

Apr 11, 2011

By default, when applications run, they are limited in the amount of RAM they are allowed to access right? Technically my VLC could not access memory addresses used by Chrome. But how is it possible for the operating system/compiler to mistakingly allow access to an address a code is not allowed. I know alot of 'exploits' and 'payloads' take advantage of this fact and create variables that take up too much space and 'overflow' into other addresses, but how does this actually happen?

Are some programs more prone to this than others? Does it matter in which language they are coded in? For example, I know C is allowed to play around with memory, while Java is not. Also, what are the advantages of this? What if someone wrote malicious code to access someplace in memory, what could they do? The only thing I can think of is passwords/keys stored in RAM.

PS I thought about putting this in Stack Overflow, but my question is much broader than just specifically related to a programming perspective. If I've placed it in the wrong place, I'm sorry.

View 2 Replies


ADVERTISEMENT

General :: Gnome - Cannot Access Computer Or Trash Locations

Mar 4, 2010

I have built gnome-2.28.1 from scratch (source) with gnome I compiled GDM and many other programs. GDM is starting fine, I can enter my user on the login prompt and login without problems. When I'm in the desktop I can't access the Computer or Trash locations clicking on the icon or even through Nautilus, the same error happening:
Error: Operation not supported.

I tried debugging by hand running the follow command: gvfs-ls trash://
Which tells me exactly Error: Operation not supported.

On my ubuntu system, lsof | grep gvfs returns a lot of gvfsd* daemons, like gvfsd-computer and gvfsd-trash. On my Scratch system lsof | grep gvfs doesn't return anything. My prefix used when building gnome was /opt/gnome and sysconfdir on /etc/gnome/2.28.1. lsof shows me that D-Bus is running, actualy gdm starts gnome with dbus-launch --exit-with-session gnome-session.

And inside my /etc/dbus-1/session-local.conf I have:
Code:
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"[URL]"> <busconfig>
<!-- Search for .service files in /usr/local -->
<servicedir>/opt/gnome/share/dbus-1/services</servicedir>
</busconfig>

Well, I done many tweaks around and still can't display gvfs location, what I think is very odd is that lsof doesn't returns any gvfsd* daemon running.

View 2 Replies View Related

General :: Access Memory Card In Ubuntu?

Dec 29, 2010

Have downloaded ubuntu (because my linux lite died). Very pleased so far with ubuntu, but I can't figure out how to access files or photos from a memory card. Just can't seem to go to anything that even shows its existence.

View 3 Replies View Related

General :: Virtual Address To Physical Memory Access ?

Feb 21, 2010

A process is trying one access to memory, for example through an array (ex.: vect[0]=123. What happens?

Here below what I guess but I'm not sure and accept any comment (please, distinguish between "the system" and "the CPU" in case).

Let's suppose swapping to disk disbled.

We have two scenarios: without and with cache.

If no cache is present in the system:
1. The CPU must discover the phys addr of vect[0] virtual addr. To do that, has to read from 3 (or 2 depending on the system?) pages tables, stored in memory as well.
2. The CPU writes to the final address.

These mean 4 memory accesses.

If cache is present:
1. Like above but, if the pages tables are in cache, we have 3 accesses to that.
2. If the req. page is not in cache, it's reads from ram and transferred to it. Afterwards, cache is written.
In the best case we have 4 cache accesses.

View 2 Replies View Related

General :: Access System Source Code In My Current Distribution?

Mar 29, 2010

I want to learn linux source code means I want to understand source code. How can I access that code in my current linux distribution? I know c,c++.

View 2 Replies View Related

General :: Run The Source Code Of Virtual Box In Windows?

Dec 2, 2010

Website through were I can learn Python,SQL & How can I run the Source code of Virtual Box in Linux & windows

View 2 Replies View Related

General :: Ntfs-3g Vs Ntfsprogs - Which One Supposed To Use

Jul 9, 2011

which one are we supposed to use? there is a conflict.

View 3 Replies View Related

General :: Share Partition Type Code With Windows?

Feb 28, 2011

Anyone know why Linux has to share a partition type code (specifically, 0700) with Windows? Why can't it have its own like some other OSes?

View 4 Replies View Related

General :: Nbd-client Which Is Supposed Contained In Kbd Package?

Feb 5, 2010

Fedora 12 64bit I need nbd-client which is supposed contained in kbd package.

$ yum list kbd
Code:
Loaded plugins: presto, refresh-packagekit
Installed Packages
kbd.x86_64 1.15-9.fc12 @fedora

kbd already installed.

[Code]...

View 6 Replies View Related

General :: Plesk Is Supposed To Be Using Psa-proftpd And Not Vsftpd

Apr 15, 2010

Clients are not able to access FTP thru browser: ftp://IP.When you open it thru browser, it does not ask for a usename or password but shows a PUB diretory instead. I tried to telnet port 21 and shows that it is using VSFTP instead of Plesk's ProFtp.

View 1 Replies View Related

General :: Windows - Formatting A Memory Stick With Two Partitions?

Apr 18, 2010

I have a 16GB memorystick which used to have a Linux partition. It therefore has two partitions; 2GB FAT32 and 14GB linux boot drive. The linux part stopped working, so I decided to reinstall it. But windows can't see that partition. I tried formatting the whole disk, but I can only format one partition (the FAT32). There seems to be no way to combine the two partitions into one big one, and there seems to be no way for windows to partition the large part of the memorystick to but Linux on it. In the windows partition manager, windows sees the large unused partition, and it let me delete it. But once I have deleted it, I'm not allowed to format it. Also I cannot delete or resize the small partition. I have a memorystick with two partitons. Windows only sees one of them, and won't let me use the other one. I would like to combine the two partitions so I can install Linux on the memory stick again.

View 3 Replies View Related

General :: Windows 7 - Order In The Slots Of Memory Modules Matter/ MemTest?

Apr 4, 2011

In a new PC I had constantly BSoD. I tracked it down to bad memory modules and took them back to the shop.Specifically the RAM was Corsair. Anyway they said they will do test on memory to confirm. They did tests and admitted the RAM was faulty and gave me a replacement. At this point: originally I bought 2 kits of 4G RAM. One of the kits turned out bad. They gave me a replacement, it does not seem to be exactly the same, though. In any case, I became causious and as soon as I got them I put them in the PC and run KUbuntu memtest. It started showing thousands of errors! (Again!). I removed the new kit and run the test again. No errors. I swapped the slots I put the memory modules and also no errors. I can not understand now. Is the new RAM kit bad or not? Does the slots I place the kits matter?

View 3 Replies View Related

General :: Installation Of Ubuntu Alongwith Windows Xp And Unable To Access Data From Windows

Mar 1, 2011

Last week I installed Ubuntu 10.10 on my system in dual booting. I had installed succesfully both but unable to see data files from windows OS. Though I have excercised the options in various resources available on internet/blogs. System takes about 03 hrs during installation process. I am also unable to configure Thunderbird.

System hardware info is as -
System ManufacturerVIA Technologies, Inc.
System ModelKM266APro-835
System TypeX86-based PC

[code]....

View 8 Replies View Related

General :: Error Code Oxd0000017 - Restore Windows Partition Without Installation Disc?

May 14, 2010

I know i get the error code because i dont have my windows partition. But i seriously need my vista back. I tried using VMware player but it didn't work. Is there anyway i can restore my windows partition without the installation disc? The restore disc does not work as it needs a windows partition.

View 7 Replies View Related

General :: Dealing With Locations Of Libraries

Mar 7, 2010

What can you do when your linux system "can't find" dynamically linked libraries that are indeed installed in their correct locations? Case in point, I'm trying to run a program called 'ucanvcam':

oliver@human ~/installed/ucanvcam-0.1.6/bin $ ./ucanvcam
./ucanvcam: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
oliver@human ~/installed/ucanvcam-0.1.6/bin $ locate libgd.so.2
/usr/lib64/libgd.so.2.0.0
/usr/lib64/libgd.so.2

oliver@human ~/installed/ucanvcam-0.1.6/bin $ ldd ./ucanvcam
linux-gate.so.1 => (0xf7706000)
[...]
libgd.so.2 => not found
[...]
librt.so.1 => /lib32/librt.so.1 (0xf6b1e000)

How can I tell it to look for libgd.so.2 in /usr/lib64? And more importantly, why isn't it looking there, and where is it looking?

View 1 Replies View Related

General :: Mounting 2 Usb Drives In To 2 Different Locations

Mar 27, 2011

I am writing a c program in linux and in the program I am mounting 2 usb devices attached to 2 specific ports in the computer. (eg : I have to mount the usb attached to the left port in to /mnt/left and the right port to /mnt/right) and the attachment order of those devices may differ (eg: left port usb may or may not be attached before the right.) In this case what should i do?

View 1 Replies View Related

General :: Mounting 2 Usb Drives In To 2 Different Locations?

Mar 27, 2011

I am writing a c program in linux and in the program I am mounting 2 usb devices attached to 2 specific ports in the computer. (eg : I have to mount the usb attached to the left port in to /mnt/left and the right port to /mnt/right) and the attachment order of those devices may differ (eg: left port usb may or may not be attached before the right.) In this case what should i do?

View 4 Replies View Related

General :: Application Virtual Address Space Memory Allocation - Memory Does Not Get Free

Apr 20, 2010

I am using malloc and frees a lot in my program. It shows its allocated but when i remove it doesnt show as the memory is removed(I am using the top command to view VIRT memory usage). If this continously grows what would happen to my program (Will it go out of memory?)

View 4 Replies View Related

General :: Ubuntu - Memory Full, Process Memory Usage Doesn't Add Up In Top?

Mar 18, 2011

I have a computer with 16GB of ram. At the moment, top shows all the RAM is taken, (NOT by cache), but the RAM used by the various processes is very far from 16GB.I have seen this problem several times, but I don't understand what is happening.My only remedy so far has been to reboot the machine.

View 1 Replies View Related

General :: Mount Different Folders On Disk To Different Locations ?

Mar 13, 2010

I have a disk with two folders, folder1 and folder2. I'd like to mount these folders separately in my home folder, that is, to the locations:

Code:

View 5 Replies View Related

General :: Equivalent With A Find At The Most Common Locations?

Apr 21, 2011

I am writing a script to install a program (a GUI interface) and would like to search if the required software is already installed. This made me think of the command whereis. I was curious how the command whereis is working but didn't know where to search. Is it equivalent with a find at the most common locations?

View 6 Replies View Related

General :: Remove Multiple Directories In Different Locations?

Mar 15, 2010

I have hundreds of directories in various subdirs that I need to remove. I want to remove all of these dirs, but can only find solutions on how to do remove files (or how to remove subdirs from within the current dir).

I think I need something like

find -iname 'testfile*' | xargs rm -i

where I want to remove every directory that contains the word 'testfile' within the directory name. I know xargs wont work for dirs,

View 9 Replies View Related

General :: Nautilus Cannot Handle Computer Locations

Mar 15, 2011

I am experiencing weird problem with Gnome 2.30.2 on my Debian installation. I can't open "Computer" from places, also, partitions which are not explicitly defined in fstab are not mounted automatically.

View 2 Replies View Related

General :: Copying Files From Multiple Locations To One Destination

Feb 21, 2011

Suppose I have a tree structure like this:
/home/mahmood/sim/a/b/file1.cpp
/home/mahmood/sim/a/b/file2.h
/home/mahmood/sim/a/c/file3.txt
/home/mahmood/sim/d/file4.txt

How can I copy all of them to /home/mahmood/sim. So that when I run "ls" in /home/mahmood/sim, I see all files:
file1.cpp
file2.h
file3.txt
file4.txt

Can 'cp' search for all file and copy them in another folder?

View 3 Replies View Related

General :: Changing A File At A Time Located In Two Locations?

Nov 23, 2010

suppose i have two file with same name fstab one file is located in /etc and the other is located in /root/ If i make a change in /etc/fstab file the changes has to reflect in /root/fstab . Is there any command to do this?

View 6 Replies View Related

General :: Download A Single File In 2 Parts To Different Locations Using Wget?

Jan 18, 2011

I need to use wget (or curl or aget etc) to download a file to two different download destinations by downloading it in two halves:

First: 0 to 490000 bytes of file
Second: 490001 to 1000000 bytes of file.

I will be downloading this to separate download destinations and will merge them back to speed up the download. The file is really large and my ISP is really slow, so I need to get help from friends to download this in parts (actually in multiple parts)

The question below is similar but not the same as my need: How to download parts of same file from different sources with curl/wget?

aget

aget seems to download in parts but I have no way of controlling precisely which part (either in percentage or in bytes) that I wish to download.

Extra Info

Just to be clear I do not wish to download from multiple locations, I want to download to multiple locations. I also do not want to download multiple files (it is just a single file). I want to download parts of the same file, and I want to specify the parts that I need to download.

View 1 Replies View Related

Programming :: How To Do A Direct Memory Access

Jul 26, 2011

I have a single board computer previously running DOS. I recently made Linux running on it. Now that the system is running Linux, I have to translate the code that was supported by DOS. The code has segments that allow direct access of memory mapped registers through the macro _MK_FP and do read/write. I have read that where DOS allows this kind of direct memory access, Linux does not. Is there a way to do this in Linux?

View 6 Replies View Related

General :: Memory Corruption Detected In Low Memory

Aug 22, 2010

This is my first post in these forums. I'm still quite new to Linux (using Mint 9) so please bear with my not-very-articulate question(s)When I boot up and open up a tty terminal I get a message saying "Memory corruption detected in low memory." I've done an extensive google search about the issue and it seems not uncommon. I ran a memtest with no errors returned, so I'm sure that there's nothing really wrong with the memory; apparently it's a bug in the kernel that's causing this.

View 2 Replies View Related

General :: Top Used Memory Versus Ps Processes Memory

Jan 17, 2010

I found from command 'top' that 8GB memory are used. However, using command 'ps' with some options to grep the running processes and then summing up the memory used by the running processes are less than 2 GB. Where has the used memory gone ?

View 7 Replies View Related

General :: Windows - Free Up Memory "fully Hibernating" A Process?

May 25, 2011

Similar to this: How to "hibernate a process" under Linux/Windows? Are there any methods to hibernate a process in a way that it doesn't stay in memory? E.g.: If I don't want to use Firefox, and don't want to close the process of it, and I need free memory, then how can I really hibernate the process so the memory reserved by Firefox is freed up? I need solution for both Windows and Linux!

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved