search for: fgets

Displaying 20 results from an estimated 348 matches for "fgets".

Did you mean: gets
2012 Apr 25
1
trouble installing SparseM
...: cast from pointer to integer of different size iohb.c:348: warning: cast from pointer to integer of different size iohb.c:349: warning: cast from pointer to integer of different size iohb.c:362: warning: cast from pointer to integer of different size iohb.c:305: warning: ignoring return value of ?fgets?, declared with attribute warn_unused_result iohb.c:313: warning: ignoring return value of ?fgets?, declared with attribute warn_unused_result iohb.c:323: warning: ignoring return value of ?fgets?, declared with attribute warn_unused_result iohb.c:336: warning: ignoring return value of ?fgets?, dec...
2008 Apr 30
1
Avelsieve 1.9.7 and Dovecot/TLS
...; and the STARTTLS code: /* If we allow STARTTLS, use it */ if($this->capabilities['starttls'] === true && function_exists('stream_socket_enable_crypto') === true) { fputs($this->fp,"STARTTLS\r\n"); $starttls_response = $this->line=fgets($this->fp,1024); if(stream_socket_enable_crypto($this->fp, true, STREAM_CRYPTO_METHOD_TLS_CLIENT) == false) { $this->error=EC_UNKNOWN; $this->error_raw = "Failed to establish TLS connection."; return false; } else {...
2003 Apr 07
3
Solaris 8 and winbindd/wbinfo
Hi All, I cannot get my Samba server 2.2.8 working with winbind correctly on Solaris 8. I intend to use this to transparently authenticate squid 2.5stable2. I compiled samba using gcc 2.95.3. configure options were ./configure --with-winbind-auth-challenge --with-winbind --with-pam root# ./wbinfo -t Secret is good root# ./wbinfo -u 0xc0000022 The same thing with wbinfo -g. getent group
2009 Oct 15
0
R segfault in fgets from do_system under high memory use (PR#14008)
Full_Name: Andrew Piskorski Version: R 2.9.2 (Patched), 2009-09-24, svn.rev 49930, x86_64-unknown-linux-gnu OS: Linux, Ubuntu 8.04.3 LTS Submission from: (NULL) (66.31.65.247) I have a large memory test case which segaults R everytime in an fgets call from R's do_system (see below). This appears to be because R does not check the return value of the system popen, and I have a simple patch to src/main/sysutils.c and src/unix/sys-unix.c which fixes the problem. I will attempt to attach the patch after submitting this initial bug report....
2005 Oct 31
3
Still corrupt indexes in 1A4
...o other 10 users which use it localy or at home (on speedy links). It's very hard for me to exactly pinpoint the problem, since it never happens to me. But when it happened to one user again I asked him to send me screenshoot of it. I could see there that SquirrelMail said: "Warning: fgets() [function fgets]: SSL: fatal protocol error in /usr/share/squirrelmail/functions/imap_general.php on line 93." Examining this file this line is in function: --------SQUIRRELMAIL PHP SOURCE------------ /** * Custom fgets function: gets a line from the IMAP server, * no matter how big i...
2023 Feb 28
1
[PATCH] io_uring: fix fget leak when fs don't support nowait buffered read
Heming reported a BUG when using io_uring doing link-cp on ocfs2. [1] Do the following steps can reproduce this BUG: mount -t ocfs2 /dev/vdc /mnt/ocfs2 cp testfile /mnt/ocfs2/ ./link-cp /mnt/ocfs2/testfile /mnt/ocfs2/testfile.1 umount /mnt/ocfs2 Then umount will fail, and it outputs: umount: /mnt/ocfs2: target is busy. While tracing umount, it blames mnt_get_count() not return as expected. Do a
2005 May 26
0
overflow in fgets()
Currently, the mainloop in fgets() does: while (n > 1) { ... } But it never decrements n. -Adrian -------------- next part -------------- --- fgets.c-old 2005-05-26 16:30:58.000000000 -0700 +++ fgets.c 2005-05-26 16:32:33.000000000 -0700 @@ -22,6 +22,7 @@ *p++ = ch; if ( ch == '\n' ) break; +...
2016 Dec 19
2
config file line length limit
...g whatever verylong.config: line 9: Bad configuration option: ABCDEFG verylong.config: terminating, 1 bad configuration options i decided to take a look at the ssh source code. i think it is pretty clear what is going wrong. ----- readconf.c: 1703 char line[1024]; ... 1730 while (fgets(line, sizeof(line), f)) { 1731 /* Update line number counter. */ 1732 linenum++; 1733 if (process_config_line_depth(options, pw, host, original_host, 1734 line, filename, linenum, activep, flags, depth) != 0) 1735...
2009 May 27
1
PHP AGI Problems
(Accidentally posted this to asterisk-dev, should be here) fgets is only returning one character... either when run as an AGI or run as a test on PHP on CLI... Example, enter 3333, then fgets returns '3'. Also, GET DATA seems to be returning early and the loop keeps prompting 'invalid'... Any suggestions on how to improve my AGI class so it actu...
2007 Jul 23
0
make world error: symbols.c:123: warning: ignoring return value of ''fgets''
...en-3.1.0-src/xen/tools'' gcc -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer -Wdeclaration-after-statement -o symbols symbols.c cc1: warnings being treated as errors symbols.c: In function ''read_symbol'': symbols.c:83: warning: ignoring return value of ''fgets'', declared with attribute warn_unused_result make[5]: *** [symbols] Error 1 make[5]: Leaving directory `/home/admin/sources/xen-3.1.0-src/xen/tools'' make[4]: *** [default] Error 2 make[4]: Leaving directory `/home/admin/sources/xen-3.1.0-src/xen/tools'' make[3]: *** [/hom...
2003 Nov 10
3
AGI and PHP
...i_channel: Zap/1-1 agi_language: en agi_type: Zap agi_callerid: agi_dnid: agi_context: default agi_extension: 1000 agi_priority: 1 . . if you need the info, save it; otherwise throw them away as follows: while(($data = fgets($stdin,1024)) != "\n") { // codes to save the info goes here // or do nothing } 7. this is the point where you can start talking with *. use fputs to send * agi commands; some people use echo but i prefer fputs: fputs($stdout,&qu...
2020 Jul 25
0
[klibc:master] stdio: Define all the _unlocked functions and macros
...d function names as aliases. For completeness, also define corresponding _unlocked macros for the macro-only pseudo-functions, and for the inline functions in stdio.h. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/include/stdio.h | 20 ++++++++++++++++++++ usr/klibc/fgets.c | 1 + usr/klibc/fputc.c | 1 + usr/klibc/fputs.c | 1 + usr/klibc/fread2.c | 1 + usr/klibc/fwrite2.c | 2 ++ usr/klibc/stdio/clearerr.c | 1 + usr/klibc/stdio/feof.c | 1 + usr/klibc/stdio/ferror.c | 1 + usr/klibc/stdio/fflush.c | 2 +-...
2023 May 05
0
[PATCH] vhost_net: Use fdget() and fdput()
On Fri, May 05, 2023 at 04:41:55PM +0800, ye xingchen wrote: > >> > >> From: Ye Xingchen <ye.xingchen at zte.com.cn> > >> > >> convert the fget()/fput() uses to fdget()/fdput(). > >What's the advantages of this? > > > >Thanks > >> > >> Signed-off-by: Ye Xingchen <ye.xingchen at zte.com.cn> > >> ---
2006 May 05
1
Problems with input and AIX
I noticed an odd side effect of the different implementations of backspace (erase) through clients such as PuTTY and SecureCRT and the input functions like fgets (I noticed this originally in ssh-keygen). On our AIX system, if the option to use ^? as the backspace key is chosen, fgets will actually put the control code for 'DEL' in the buffer (0x7f) instead of deleting the last character input. The scenario I noticed is that someone creates a key...
2010 Mar 06
1
ssh-keyscan bug (not really exploitable)
ssh-keyscan may, under very specific circumstances, be vulnerable to something akin to a buffer overflow. It's probably impossible to exploit, though, if only because ssh-keyscan is not usually run on very large untrusted input files. ssh-keyscan uses an fgets() wrapper that uses an unsigned int to keep track of the length of a buffer holding the current line. On machines with sufficient address space to hold UINT_MAX / 2 bytes, e.g. amd64, one can fill those bytes. The next call will be realloc(buf, 0), which free()s the buffer and returns a non-NULL ze...
2007 Sep 18
7
[Bug 1365] New: sftp exits immediately after connection (fgets EAGAIN)
http://bugzilla.mindrot.org/show_bug.cgi?id=1365 Summary: sftp exits immediately after connection (fgets EAGAIN) Product: Portable OpenSSH Version: 4.7p1 Platform: All OS/Version: Linux Status: NEW Keywords: patch Severity: normal Priority: P2 Component: sftp AssignedTo: bitbucket at mindrot.org...
1999 Nov 11
2
Display Pictures in R
Hi, how can I import pictures in R (e.g. bmp or tiff) and display them in an X11? Thanks Sigurd -------------- next part -------------- An HTML attachment was scrubbed... URL: https://stat.ethz.ch/pipermail/r-help/attachments/19991111/9923e65c/attachment.html
2007 Aug 12
1
Calysto v1.5 reports on ssh v4.6p1
...ke a bug to me: ------------------------------------------ Possible NULL-ptr deref (vc27053): @/work/projects/llvm/tools/Calysto/IfaceSpecs/clib.c:1823 Bug: ?? Explanation: choose_dh (dh.c:111) calls fopen twice (@120). If the first call to fopen fails (returns NULL), but the second one succeeds, fgets (@129) is called with f==NULL. ------------------------------------------ Can anyone confirm that this is a potential issue? Thx, -- Domagoj Babic http://www.domagoj.info/ http://www.calysto.org/
2010 Mar 27
1
Syslinux-4/libutil: console_ansi_std()
...ing in Syslinux-4. As has been my habit, I first recompiled the Linux binary and tried it out. In the beginning of ROSH, it calls console_ansi_std(). When I was working on this in the past, using this function ensured both the Linux and the Syslinux/COM32 binaries function similarly. When using fgets() to get an input string in the Linux binary, I noticed that hitting the "Enter" key had no results and therefore ROSH did not proceed with processing a command. Right now, I'm working on programming a testing application to test the input capabilities and see if I can fumble around...
2016 Apr 09
5
Slow reading of large dovecot-uidlist files
Hi there, (context: I was optimizing Roundcube mailbox list server response, and in that 300-400ms response time, around 170ms is spent on single fgets() call which is waiting IMAP repsonse to "SELECT MyMailbox" command) I straced dovecot and of the whole request/response process, around 30ms is spent for everything else, and overwhelming majority of time (150-170ms) is spent for reading dovecot-uidlist file for given mailbox. I skimme...