Advertisement
Guest User

This is wrong

a guest
Oct 31st, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. viega@li777-8:~$ cat > s.c
  2. c;main(a){while(~c)putchar(isprint(c=getchar(++a))?c:6>a^(9+(a=1)));}
  3. viega@li777-8:~$ cc s.c
  4. s.c:1:1: warning: data definition has no type or storage class [enabled by default]
  5. c;main(a){while(~c)putchar(isprint(c=getchar(++a))?c:6>a^(9+(a=1)));}
  6. ^
  7. viega@li777-8:~$ ./a.out < a.out
  8.  
  9.  
  10. ELF
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24. >
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31. @
  32.  
  33.  
  34.  
  35.  
  36. @
  37.  
  38. %< snipped tons of white space and occasional short-string characters %<
  39.  
  40. /lib64/ld-linux-x86-64.so.2
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53. GNU
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82. GNU
  83.  
  84. &< a bunch more snipping %<
  85.  
  86. libc.so.6
  87. putchar
  88. isprint
  89. getchar
  90. __libc_start_main
  91. __gmon_start__
  92. GLIBC_2.2.5
  93.  
  94. %< Tons more snipping %<
  95.  
  96.  
  97.  
  98.  
  99. GCC: (Ubuntu 4.8.2-19ubuntu1) 4.8.2
  100.  
  101. .symtab
  102. .strtab
  103. .shstrtab
  104. .interp
  105. .note.ABI-tag
  106. .note.gnu.build-id
  107. .gnu.hash
  108. .dynsym
  109. .dynstr
  110. .gnu.version
  111. .gnu.version_r
  112. .rela.dyn
  113. .rela.plt
  114. .init
  115. .text
  116. .fini
  117. .rodata
  118. .eh_frame_hdr
  119. .eh_frame
  120. .init_array
  121. .fini_array
  122. .jcr
  123. .dynamic
  124. .got
  125. .got.plt
  126. .data
  127. .bss
  128. .comment
  129.  
  130. %< Last snip %<
  131.  
  132. crtstuff.c
  133. __JCR_LIST__
  134. deregister_tm_clones
  135. register_tm_clones
  136. __do_global_dtors_aux
  137. completed.6972
  138. __do_global_dtors_aux_fini_array_entry
  139. frame_dummy
  140. __frame_dummy_init_array_entry
  141. s.c
  142. __FRAME_END__
  143. __JCR_END__
  144. __init_array_end
  145. _DYNAMIC
  146. __init_array_start
  147. _GLOBAL_OFFSET_TABLE_
  148. __libc_csu_fini
  149. putchar@@GLIBC_2.2.5
  150. _ITM_deregisterTMCloneTable
  151. data_start
  152. _edata
  153. _fini
  154. __libc_start_main@@GLIBC_2.2.5
  155. __data_start
  156. getchar@@GLIBC_2.2.5
  157. __gmon_start__
  158. __dso_handle
  159. _IO_stdin_used
  160. __libc_csu_init
  161. _end
  162. _start
  163. c
  164. __bss_start
  165. main
  166. isprint@@GLIBC_2.2.5
  167. _Jv_RegisterClasses
  168. __TMC_END__
  169. _ITM_registerTMCloneTable
  170. _init
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement