Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
buffer
- Page 1
buffer
Programming
Software Development
20 Years Ago
by jifiii
…necessary)\n"); return; } do { count=GetBuffer(
buffer
); if (count>0) { printf("%08x "…break; default: return 1; break; } } int GetBuffer(char*
buffer
[]) { char tempchar; //Temporarily stores character from standard in, //to…
Re: buffer
Programming
Software Development
20 Years Ago
by jifiii
…screen if necessary)\n"); return; } do { count=GetBuffer(
buffer
); if (count>0) { printf("%08x ",offsetCount);…0; } else { canonical = 0; rc = 0; } } } } int getbuffer( char*
buffer
) { int c; int i; //int i = 0; while ( ( c = getchar…
Re: buffer
Programming
Software Development
20 Years Ago
by Narue
…quot;,offsetCount); offsetCount+=count; /*PrintHex(count,
buffer
);*/ if (canonical) { /*PrintAscii(count,
buffer
);*/ } } } while(count>0);…} } break; } return 1; } int GetBuffer(char
buffer
[]) { int tempchar; int counter=0; while(((tempchar=getchar())!=EOF…
Re: buffer cout output and modify cout output order
Programming
Software Development
15 Years Ago
by raigs
… 1. How can I store all the output into a
buffer
? 2. Then, I have to get the size of that…size. How can I achieve this? 3. Then, cout that
buffer
's content. [CODE]#include <iostream> using namespace std…; "cout output until this point"; string
BUFFER
; // I need to
buffer
the cout output until now. cout << &…
Buffer overflow problem.
Programming
9 Years Ago
by SomeProgrammer
…n", ERROR_FAILED_TO_ALLOCATE_MEMORY); return -1; } // Create the key
buffer
. strcpy_s(key_buffer, key_len, cipher_data.salt); strcpy_s(key_buffer, key_len, …nkey_buffer: %s\n", key_buffer); // Hash the key
buffer
and generate the key. SHA512(key_buffer, strlen(key_buffer), hashed_key);…
Re: buffer vs stream
Programming
Software Development
16 Years Ago
by Narue
…. A buffered stream is a stream with a
buffer
(obviously!), but what's the point? Consider …hardware accesses to read one million characters, a
buffer
of ten thousand drops the number of hardware …, refilling\n"; i = 0; n = std::fread (
buffer
, sizeof *
buffer
, BUFFER_SIZE, stdin ); } if ( n != 0 ) { std::…
buffer cout output and modify cout output order
Programming
Software Development
15 Years Ago
by raigs
…, cout something and then cout the
buffer
? I've been googleing but did not …"cout output until this point"; string
BUFFER
; // I need to
buffer
the cout output until now. cout <<…quot;Content-length: " +
BUFFER
.length(); // cout this first. cout <<
BUFFER
; // cout the
BUFFER
after the: Content-length. cout.…
Buffer overflow founded when migrate a c application from AIX to Solaris
Programming
Software Development
14 Years Ago
by algarmon
… Then, I run the application and found the first
buffer
overflow, then corrected the application y run it again…data values in memory addresses adjacent to the allocated
buffer
. Most commonly this occurs when copying strings of characters… from one
buffer
to another. I understand that the right thing …
Re: buffer cout output and modify cout output order
Programming
Software Development
15 Years Ago
by Lerner
…Content-length: " That is a string and this:
BUFFER
.length() equates to an int. So when you use the…lt;< "Content-length: "; cout <<
BUFFER
.length(); but everything between the << and ; operators in…: cout << "Content-length: " +
BUFFER
.length(); is considered one object so it has to be…
Buffer fwrite problem Pls Help!
Programming
Software Development
15 Years Ago
by sfreema4
… string correctly that is coming from a 4K read
buffer
. Here is the code I have currently: read_4K.…b, 4096); } [/code] reader.c [code=c] static char
Buffer
[4096]; static int Bend = 0; static int Bptr = 0;…s,int size){ if(Bptr >= Bend){ Bend = read_4K(
Buffer
); if(!Bend){ return 0; } Bptr = 0; } strncpy(s,…
Re: Buffer fwrite problem Pls Help!
Programming
Software Development
15 Years Ago
by srrid.ajmal
… string correctly that is coming from a 4K read
buffer
. Here is the code I have currently: read_4K.…b, 4096); } [/code] reader.c [code=c] static char
Buffer
[4096]; static int Bend = 0; static int Bptr = 0;…s,int size){ if(Bptr >= Bend){ Bend = read_4K(
Buffer
); if(!Bend){ return 0; } Bptr = 0; } strncpy(s,…
Re: buffer cout output and modify cout output order
Programming
Software Development
15 Years Ago
by raigs
[QUOTE=Lerner;1024675]"Content-length: " That is a string and this:
BUFFER
.length() equates to an int.[/QUOTE] Yes, I made a mistake by concatenating a string and an integer when I drew up that example. But how can I
buffer
cout and modify the order they are output?
buffer cache (minix)
Hardware and Software
Linux and Unix
19 Years Ago
by sam1
… system before? if yes did you modify the cache
buffer
to get a good performance? I am new to …to measure the perferomance by altering the
buffer
cache. Any explanation on operation of
buffer
cache(minix), and how to add… codes to
buffer
cache to get better performance will…
Re: buffer to upper case?
Programming
Software Development
16 Years Ago
by jephthah
…'s the correct version: [code=c] void stringToUpper (char *
buffer
) // converts any lowercase characters in a string to uppercase // leaves…string // output: pointer to modified
buffer
, original string is overwritten { char * buffer_ptr =
buffer
; size_t buffer_len = strlen(
buffer
); while(buffer_len--) *buffer_ptr=toupper(*…
Re: Buffer fwrite problem Pls Help!
Programming
Software Development
15 Years Ago
by Dave Sinkula
… getting these garbage characters after the first read from the
buffer
...[/QUOTE] See that garbage character every 10? Which coincides with…
Re: Buffer fwrite problem Pls Help!
Programming
Software Development
15 Years Ago
by nezachem
… the call to strncpy[/QUOTE] Hmm... do I smell a
buffer
overflow here?
Re: Buffer fwrite problem Pls Help!
Programming
Software Development
15 Years Ago
by tmoorez06
… a ‘\0’ is found. [QUOTE]Hmm... do I smell a
buffer
overflow here?[/QUOTE] Not if you have allocated enough memory…
Re: buffer to upper case?
Programming
Software Development
16 Years Ago
by Nick Evan
… <ctype.h> [...] int main() { char up,
buffer
= 'a'; up = toupper(
buffer
); return 0; } [/code] There is another way, although some… it doesn't work on all charactersets [code=c] char
buffer
= 'a';
buffer
+= '0'; /* add 48 to the char */ [/code] I haven…
Re: buffer to upper case?
Programming
Software Development
16 Years Ago
by toolbox03
… <ctype.h> [...] int main() { char up,
buffer
= 'a'; up = toupper(
buffer
); return 0; } [/code] There is another way, although some… it doesn't work on all charactersets [code=c] char
buffer
= 'a';
buffer
+= '0'; /* add 48 to the char */ [/code] I haven…
Re: buffer to upper case?
Programming
Software Development
16 Years Ago
by jephthah
… something like: [code=c]void changeBufferToUpper (char *
buffer
) { char * buffer_ptr =
buffer
; size_t buffer_len = strlen(
buffer
); while(buffer_len--) buffer_ptr=toupper(buffer_ptr++); }[/code] as… for nick's second suggestion, [icode]
buffer
+= '0'; /* add 48 to the char */[/icode] ... that…
Re: buffer vs stream
Programming
Software Development
16 Years Ago
by Ancient Dragon
A
buffer
is normally just a block of memory where things can … object) might store it in a
buffer
and write to disk when either the
buffer
is full or when there is available…
Re: Buffer overflow generated by "C:\WINDOWS\system32\services.exe
Hardware and Software
Information Security
15 Years Ago
by jholland1964
… or services. Here is the definition of a
buffer
overflow: [QUOTE]A
buffer
overflow occurs when a program or process tries to… store more data in a
buffer
(temporary data storage area) than it was intended to hold…
Buffer cannot be null. Parameter name: buffer
Programming
Software Development
13 Years Ago
by aishapot
… was a message box error. it says
Buffer
cannot be null. Parameter name:
buffer
I don't know what i did wrong…
Re: Buffer overflow exploit vulnerability C
Programming
Software Development
10 Years Ago
by deceptikon
…key to understanding how to prevent them. Hardly. Preventing
buffer
overflow in code is not dependent on understanding the details… hole. There's a difference between "this is
buffer
overflow, and here is how you avoid it",… and "tell me how this
buffer
overflow exploit works". The former teaches safe coding …
Buffer overrun detected!
Hardware and Software
Microsoft Windows
20 Years Ago
by smartdetect
…(my computer/control panel/IE etc..): Micrsoft VisualC++ runtime library.
Buffer
overrun detected! Program :E:/windows/explorer.exe.... A…
buffer
overrun has been detected which has corrupted the programs internal …
Buffer Overun Error and AOL !!!!!
Hardware and Software
Microsoft Windows
19 Years Ago
by goingkrazy
… that says: [B]Microsoft Visual C++ Runtime Library
Buffer
overrun detected A
buffer
overun has been detected which has corrupted the programs…
Buffer Overrun Detected, please help me!
Hardware and Software
Information Security
17 Years Ago
by Rednas
…. Message: Microsoft Visual C++ Runtime Library
Buffer
overrun detected! Program: C:/WINDOWS/Explorer.EXE A
buffer
overrun has been detected which has…
Buffer overrun
Hardware and Software
Microsoft Windows
17 Years Ago
by lost in cspace
I am new to the forum but I still need some advice. I am somewhat OK with PC but certainly not a programmer or analyst. Problem error message on screen: Microsoft visual C++ runtime library (in title bar)
buffer
overrun detected! Program: C:\windows\explorer.exe
buffer
overrun detected which has corrupted program's internal state.
Buffer overflow generated by "C:\WINDOWS\system32\services.exe
Hardware and Software
Information Security
16 Years Ago
by imfrank47
… "C:\WINDOWS\system32\services.exe" had generated a
buffer
overflow immediately blocked by McAfee SecurityCenter. Today a system crash… everythings run properly but, once again, the message related to
buffer
overflow show up again. Any check with McAfee and Windows…
buffer vs stream
Programming
Software Development
16 Years Ago
by serkan sendur
i was reading xerces-c class documentation, one of the methods does the writing of
buffer
to a file. what should i understand from
buffer
, how is it different from writing some stream to a file? What should i understand from stream? Thanks
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC